如题所述
åºç¨ç¨åºï¼æ¯å¦PHPï¼é¿æ¶é´çæ§è¡æ¹éçMYSQLè¯å¥ã
æ常è§çå°±æ¯ééæè æ°æ§æ°æ®è½¬åã解å³æ¹æ¡ï¼å¨my.iniæ件ä¸æ·»å æè ä¿®æ¹ä»¥ä¸ä¸¤ä¸ªåéï¼
wait_timeout=2880000
interactive_timeout = 2880000å ³äºä¸¤ä¸ªåéçå ·ä½è¯´æå¯ä»¥googleæè çå®æ¹æåã
å¦æä¸è½ä¿®æ¹my.cnfï¼åå¯ä»¥å¨è¿æ¥æ°æ®åºçæ¶å设置CLIENT_INTERACTIVEï¼æ¯å¦ï¼
sql = "set interactive_timeout=24*3600";
mysql_real_query(...)
æ常è§çå°±æ¯ééæè æ°æ§æ°æ®è½¬åã解å³æ¹æ¡ï¼å¨my.iniæ件ä¸æ·»å æè ä¿®æ¹ä»¥ä¸ä¸¤ä¸ªåéï¼
wait_timeout=2880000
interactive_timeout = 2880000å ³äºä¸¤ä¸ªåéçå ·ä½è¯´æå¯ä»¥googleæè çå®æ¹æåã
å¦æä¸è½ä¿®æ¹my.cnfï¼åå¯ä»¥å¨è¿æ¥æ°æ®åºçæ¶å设置CLIENT_INTERACTIVEï¼æ¯å¦ï¼
sql = "set interactive_timeout=24*3600";
mysql_real_query(...)
温馨提示:答案为网友推荐,仅供参考