MySQL安装与卸载 

  SQL语句与Oracle大致相同

  主要使用 Navicat for MySQL进行数据库操作

  MySQL常用的命令:

    登录:mysql -uroot -p  /mysql -uroot -proot

    退出:exit

    建库:create database 库名;

    卸载库:drop database 库名;

    显示所有库:show databases;

    选择库:use 库名;

      显示选中库的所有表:show tables;

      显示表中的内容:describe 表名;

加载驱动类

  MySQL:Class.forName("com.mysql.jdbc.Driver");

  Oracle:Class.forName("oracle.jdbc.driver.OracleDriver");

连接数据库

  MySQL:DriverManager.getConnection("jdbc:mysql://host:prot/database","user""pwd");

MySQL_20200417的更多相关文章

随机推荐

  1. 从零搭建hadoop集群之安装jdk

    卸载系统自带的OpenJDK以及相关的java文件 1. 查询系统自带的OpenJDK版本信息 [root@hadoop01 ~]# java -version #查询系统自带的OpenJDK版本信息 ...

  2. logback-spring.xml配置说明

    logback-spring.xml的配置说明 <?xml version="1.0" encoding="UTF-8"?> <configu ...

  3. 四、配置docker MySQL 修改编码,支持 utf8mb4

    docker 获取 mysql 5.7 版本的镜像. 将docker 里面的 3306 端口映射出来,否则虚拟机外,可能无法访问, 创建 docker 镜像 docker run -itd -p 33 ...

  4. 【Python】开始学习叭

    学习视频:https://www.bilibili.com/video/BV1wD4y1o7AS    

  5. springboot1.x apollo 更改属性值不起作用。 ConfigurationProperties

    1. @ApolloConfigChangeListeners 默认监控命名空间是 application.properties , 如果是自己创建的namespace ,一定要明确指定(包含文件扩展 ...

  6. redis常用命令之Hash

    redis常用命令之Hash Hash常用命令 redis 可以理解为一个全局的大字典,key就是数据的唯一标识符.对应的key不同,value也不同.redis有5个基本的数据类型. 1 redis ...

  7. react ts 上传

    public MessageObjectPO<UploadPO> OnPostUpload(UploadRO uploadRO) { var response = new MessageO ...

  8. MySQL skip_name_resolve参数的设置

    Skip_name_resolve Dynamic No Default Value OFF 默认值是off,也就是在检查客户端连接时在第一次要解析主机名(如果有开启DNS服务器,则做 " ...

  9. 使用react脚手架创建项目报错-You are running `create-react-app` 5.0.0, which is behind the latest release (5.0.1).

    创建项目报错: You are running `create-react-app` 5.0.0, which is behind the latest release (5.0.1). We no ...

  10. How to Check and Repair EXT4 Filesystem in Linux

    The fsck (stands for File System Consistency Check) is used to check and repair one or more Linux fi ...