MySQL Forums
Forum List  »  Italian

Warning: mysql_connect(): MySQL server has gone away
Posted by: roberto di stefano
Date: February 07, 2014 06:39AM

Salve a tutti, sto sviluppando un sito per dei clienti, utilizzo il cms Opencart.
fino a ieri il sito funzionava tranquillamente, stamattina sono comparsi alcuni errori.
il primo dice "Warning: mysql_connect(): MySQL server has gone away "
cercando su internet ho letto che è spesso legato alla variabile max_allowed_packet; ma non è possibile, perché ho notato che è impostata a 16MB, mentre in locale con lo stesso db e con max_allowed_packet settato a 1MB il problema non sussiste.

Un'altra particolarità è che non sempre compare quest'errore, ma dopo qualche refresh si verifica puntualmente.

Cosa potrei fare per risolvere?

Incollo di seguito tutta la serie di erroriWarning: mysql_connect(): MySQL server has gone away in D:\Sites\f*****\public_html\n1\system\database\mysql.php on line 6 Warning: mysql_connect(): Error while reading greeting packet. PID=11104 in D:\Sites\f****\public_html\n1\system\database\mysql.php on line 6 Warning: mysql_connect(): MySQL server has gone away in D:\Sites\f****\public_html\n1\system\database\mysql.php on line 6 Notice: Error: Could not make a database link using web****4 in D:\Sites\f****\public_html\n1\system\database\mysql.php on line 7 Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in D:\Sites\f******\public_html\n1\system\database\mysql.php on line 10 Notice: Error: Could not connect to database ********o in D:\Sites\f********\public_html\n1\system\database\mysql.php on line 11 Warning: mysql_query() expects parameter 2 to be resource, boolean given in D:\Sites\f********\public_html\n1\system\database\mysql.php on line 14 Warning: mysql_query() expects parameter 2 to be resource, boolean given in D:\Sites\f*********\public_html\n1\system\database\mysql.php on line 15 Warning: mysql_query() expects parameter 2 to be resource, boolean given in D:\Sites\********.com\public_html\n1\system\database\mysql.php on line 16 Warning: mysql_query() expects parameter 2 to be resource, boolean given in D:\Sites\f******\public_html\n1\system\database\mysql.php on line 17 Notice: Trying to get property of non-object in D:\Sites\f*******\public_html\n1\admin\index.php on line 47 Warning: Invalid argument supplied for foreach() in D:\Sites\f*********\public_html\n1\admin\index.php on line 47

Options: ReplyQuote


Subject
Views
Written By
Posted
Warning: mysql_connect(): MySQL server has gone away
5698
February 07, 2014 06:39AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.