当前位置:Gxlcms > 数据库问题 > mysql常用操作(二)

mysql常用操作(二)

时间:2021-07-01 10:21:17 帮助过:15人阅读

给用户权限

mysql>grant all on discuz.* to ‘river‘@‘10.10.13.%‘ identified by ‘abc.123‘;

刷新权限

mysql>flush privileges;

查询当前数据库有哪些队列

mysql>show processlist;

查询数据库的变量

mysql>show variables;

在数据库里面配置最大连接数

mysql>set global max_connections=200;

数据库里面查询过滤

mysql>show variables like ‘max_connections‘;

查看状态

mysql>show status;

使用通配符%

mysql>show status like ‘%buffer%‘;

查看错误日志,错误日志位置/data/mysql/主机名.err

修复表

mysql>repair table discuz.pre_forum_post;


本文出自 “愺艮搥豩” 博客,请务必保留此出处http://riverxyz.blog.51cto.com/533303/1783489

mysql常用操作(二)

标签:identified   repair   discuz   数据库   status   

人气教程排行