D6 and mysql "server has gone away"
chasz - December 7, 2008 - 07:36
| Project: | OpenX Manager |
| Version: | 6.x-1.01 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I keep get "server has gone away" errors

#1
ollie,
its not related to OpenX Manager module. its Drupal or OpenX server.
regards,
massa
#2
Hi,
I had faced this problem and have solution, please try this.
In includes/database.mysql.inc, at the end of function db_connect(), under the "SET NAMES" line:
mysql_query('SET SESSION wait_timeout = 60', $connection);
In includes/database.mysqli.inc, at the end of function db_connect(), under the "SET NAMES" line:
mysqli_query($connection, 'SET SESSION wait_timeout = 60');
I guess someone with more PHP experience that me could suggest a patch to check if wait_timeout is too low and fix it in some economic way.
Please try this, this may Help you, Good Luck