1 Vote Vote

mysql connection closes after a certain time? (PHP)

Posted by topdog 284 days ago Questions| mysql mysql connection connection All

Hey guys,

I have a script that takes several minutes to execute. The mysql connection is established at the beginning (mysql_connect), then a loop with some queries follows (mysql_query). That loop lasts very long, and after a few minutes the script throws a warning that the mysql server has gone away (Supplied argument is not a valid MySQL result resource)

Does the connection close automatically after a certain time of execution, even though queries are made and results are fetched?

Discuss Bury


Who Voted for this Question