标签:using nbsp status ons time ice like ble strong
1. show global status 查看所有状态 (可省略)
2. SHOW VARIABLES LIKE ‘max_connections‘ (查找最大连接数),然后修改 my.cnf 文件中 max_connections 的值 为1500
3.重启mysql sudo service mysql restart
4.查看是否有死锁 show processlist
5.开启慢查询
1)在my.cnf 文件下,搜索 mysqld,然后咋其下行 添加
long_query_time=2
log-slow-queries
log-queries-not-using-indexes
标签:using nbsp status ons time ice like ble strong
原文地址:https://www.cnblogs.com/xiaoyii/p/9102403.html