上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 42 下一页
摘要: 1.MySQL提供的存储引擎 1)MySQL 提供以下存储引擎: 1.InnoDB 数据经常添加、删除、修改、查询,使用该引擎 2.MyISAM 只对数据进行查询和添加 3.MEMORY 支持hash索引 4.ARCHIVE 5.FEDERATED 6.EXAMPLE 7.BLACKHOLE 8.M 阅读全文
posted @ 2020-10-31 20:04 六月OvO 阅读(76) 评论(0) 推荐(0)
摘要: 1.建立索引的原则 1.如果可以建立唯一键索引,就建立唯一键索引 2.为经常需要排序、分组和联合操作的字段建立索引 3.为常作为查询条件的字段建立索引 4.尽量使用前缀索引 如果索引字段的值很长,最好使用值的前缀来索引。例如,TEXT和BLOG类型的字段,进行全文检索 会很浪费时间。如果只检索字段的 阅读全文
posted @ 2020-10-31 19:57 六月OvO 阅读(611) 评论(0) 推荐(0)
摘要: 1.explain语法 mysql> explain select * from user where age='30' and money > '1000000' and look='beautiful'; #1.查看中国和美国的城市人口数量 mysql> select name,populati 阅读全文
posted @ 2020-10-31 19:53 六月OvO 阅读(236) 评论(0) 推荐(0)
摘要: 1.主键索引(聚集索引)PRI #创建主键索引 1.建表时创建主键索引 1)方法1: mysql> create table student(id int unsigned primary key auto_increment comment '学生id'); 2)方法2: mysql> creat 阅读全文
posted @ 2020-10-31 19:46 六月OvO 阅读(94) 评论(0) 推荐(0)
摘要: 1.字符集介绍 字符集:是一个系统支持的所有抽象字符的集合。字符是各种文字和符号的总称,包括各国家文字、标点符号、图形符号、数字等 #最早的字符集:ASCII码 中国的字符集:gbk,utf8,utf8mb4,gbk2312,.... 日本:shift-JIS 韩国:Euc-kr 万国编码:Unic 阅读全文
posted @ 2020-10-31 19:40 六月OvO 阅读(80) 评论(0) 推荐(0)
摘要: 下面用到的包已放到文件里需要的可以自己下载 1.select 简单查询命令 #1.查询表中所有的数据 mysql> select * from test.student; #2.查看所有数据之前,先查看数据量 mysql> select count(*) from test.student; #3. 阅读全文
posted @ 2020-10-31 19:37 六月OvO 阅读(128) 评论(0) 推荐(0)
摘要: 1.insert命令 #1.插入数据之前先看表结构 mysql> desc student; + + + + + + + | Field | Type | Null | Key | Default | Extra | + + + + + + + | id | int(10) unsigned | N 阅读全文
posted @ 2020-10-31 19:14 六月OvO 阅读(88) 评论(0) 推荐(0)
摘要: 1.授权命令 grant #1.授权 grant all on *.* to root@'172.16.1.%' identified by '123'; #应该授权低一点的权限 grant select,update,insert on database.* to dev@'172.16.1.%' 阅读全文
posted @ 2020-10-31 19:10 六月OvO 阅读(127) 评论(0) 推荐(0)
摘要: 指定路径升级请点击 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ https://www.cnblogs.com/chenlifan/p/13882155.html 1.创建一个old库 [root@db02 ~]# mysql -e "create database old charset utf8mb4 阅读全文
posted @ 2020-10-26 23:44 六月OvO 阅读(125) 评论(0) 推荐(0)
摘要: 默认路径/usr/local升级请点击 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ https://www.cnblogs.com/chenlifan/p/13882202.html 指定目录/server升级(如果不明白如何安装的点击https://www.cnblogs.com/chenl 阅读全文
posted @ 2020-10-26 23:31 六月OvO 阅读(236) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 42 下一页