chronic10125 Posted September 13, 2011 Share Posted September 13, 2011 Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server during query in /srv/disk3/839114/www/newrpg.mygamesonline.org/lib.php on line 55 Lost connection to MySQL server during query Link to comment https://forums.phpfreaks.com/topic/247087-need-help/ Share on other sites More sharing options...
xyph Posted September 13, 2011 Share Posted September 13, 2011 http://dev.mysql.com/doc/refman/5.0/en/gone-away.html Without seeing code, it's impossible to help you beyond You can also get these errors if you send a query to the server that is incorrect or too large. If mysqld receives a packet that is too large or out of order, it assumes that something has gone wrong with the client and closes the connection. If you need big queries (for example, if you are working with big BLOB columns), you can increase the query limit by setting the server's max_allowed_packet variable, which has a default value of 1MB. You may also need to increase the maximum packet size on the client end. More information on setting the packet size is given in Section C.5.2.10, “Packet too large”. An INSERT or REPLACE statement that inserts a great many rows can also cause these sorts of errors. Either one of these statements sends a single request to the server irrespective of the number of rows to be inserted; thus, you can often avoid the error by reducing the number of rows sent per INSERT or REPLACE. Link to comment https://forums.phpfreaks.com/topic/247087-need-help/#findComment-1268966 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.