小编典典手动清理:您可以杀死该进程ID。mysql> show full processlist;+---------+------------+-------------------+------+---------+-------+-------+-----------------------+| Id | User | Host | db...
小编典典
手动清理:
您可以杀死该进程ID。
mysql> show full processlist;
+---------+------------+-------------------+------+---------+-------+-------+-----------------------+
| Id | User | Host | db | Command | Time | State | Info |
+---------+------------+-------------------+------+---------+-------+-------+-----------------------+
| 1193777 | TestUser12 | 192.168.1.11:3775 | www | Sleep | 25946 | | NULL |
+---------+------------+-------------------+------+---------+-------+-------+-----------------------+
mysql> kill 1193777;
但:
php应用程序可能会报告错误(或网络服务器,请检查错误日志)
不要修复未损坏的内容 -如果您的连接不短,那就保持它们的状态。
自动清洁服务;)
mysql> show variables like "%timeout%";
| Variable_name | Value |
| connect_timeout | 5 |
| delayed_insert_timeout | 300 |
| innodb_lock_wait_timeout | 50 |
| interactive_tim