2017年7月29日

mysql 索引操作

摘要: 增加索引 alter table table_name add index(columes) alter table table_name add primaty key (colume) alert table table_name add unique(colume) 删除索引 alter ta 阅读全文

posted @ 2017-07-29 17:59 长风剑客 阅读(91) 评论(0) 推荐(0) 编辑

mysql慢查询

摘要: 查看相关慢查询参数 show variables like '%slow_query%' show varialbes like '%long_query_time%' 阅读全文

posted @ 2017-07-29 11:17 长风剑客 阅读(108) 评论(0) 推荐(0) 编辑

mysql5.7用户管理

摘要: 添加用户 命令:create user 'username'@'host' identified by 'password' 例子:create user 'changfeng'@'%' identified by '111111' 配置用户权限 命令:grant privileges on dat 阅读全文

posted @ 2017-07-29 11:08 长风剑客 阅读(137) 评论(0) 推荐(0) 编辑

导航