【发布时间】:2015-09-08 06:53:06
【问题描述】:
我有这个配置
mysql> SHOW VARIABLES where Variable_name like '%timeout';
+----------------------------+-------+
| Variable_name | Value |
+----------------------------+-------+
| connect_timeout | 5 |
| delayed_insert_timeout | 300 |
| innodb_lock_wait_timeout | 50 |
| innodb_rollback_on_timeout | OFF |
| interactive_timeout | 28800 |
| net_read_timeout | 30 |
| net_write_timeout | 60 |
| slave_net_timeout | 7200 |
| table_lock_wait_timeout | 50 |
| wait_timeout | 28800 |
+----------------------------+-------+
10 rows in set (0.01 sec)
mysql>
我需要长时间连接,想无限超时。
查看我的 php 源代码。
<?php
$link = @mysql_connect("localhost","root",$pw);
...
mysql_query($query,$link);
...
// A long time flows (maybe 28,800sec)
mysql_query($query,$link); // error !!
?>
请指教。
【问题讨论】:
-
我已经知道了,想要无限。但是我读过参考MYSQL。谢谢
标签: mysql