got timeout reading communication packets 的解..
时间:2008-08-06 来源:Coolriver
got timeout reading communication packets 的解决方法
作/译者:吴炳锡 来源:http://coolriver.cublog.cn,wubingxi#gmail.com 转载请注明作/译者和出处,并且不能用于商业用途,违者必究。
错误提示:
user: 'root' host: `localhost' (Got timeout reading communication packets) MYSQL server has gone away
引起这个原因是不可怕的.原因是更改了系统的断开时间.
mysql>show gloable variables like "%timeout%";
进行查看
interactive_timeout 的黓认值为28800
wait_timeout 的默认值这:120
根据情况增加吧.
这两个值是一个全局变量,可以动态增加,如:
mysql> set global interactive_timeout=28800;
Query OK, 0 rows affected (0.00 sec) mysql> show global variables like "interactive_timeout";
+---------------------+-------+
| Variable_name | Value |
+---------------------+-------+
| interactive_timeout | 28800 |
+---------------------+-------+
1 row in set (0.00 sec)
user: 'root' host: `localhost' (Got timeout reading communication packets) MYSQL server has gone away
引起这个原因是不可怕的.原因是更改了系统的断开时间.
mysql>show gloable variables like "%timeout%";
进行查看
interactive_timeout 的黓认值为28800
wait_timeout 的默认值这:120
根据情况增加吧.
这两个值是一个全局变量,可以动态增加,如:
mysql> set global interactive_timeout=28800;
Query OK, 0 rows affected (0.00 sec) mysql> show global variables like "interactive_timeout";
+---------------------+-------+
| Variable_name | Value |
+---------------------+-------+
| interactive_timeout | 28800 |
+---------------------+-------+
1 row in set (0.00 sec)
相关阅读 更多 +