MySQL error - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MySQL error (
/showthread.php?tid=656944)
MySQL error -
Heress - 28.07.2018
mysql_log.txt:
[12:11:21] [ERROR] CMySQLConnection::Connect - (error #2013) Lost connection to MySQL server at 'reading initial communication packet', system error: 0
How to fix it?
Re: MySQL error -
Dayrion - 28.07.2018
"This happens because the connection between your MySQL client and database server times out. Essentially, it took too long for the query to return data so the connection gets dropped. The MySQL documentation suggests increasing the net_read_timeout or connect_timeout values on the server. If this doesn’t solve the problem, you may need to increase your MySQL client’s timeout values."
Re: MySQL error -
Heress - 28.07.2018
Quote:
Originally Posted by Dayrion
"This happens because the connection between your MySQL client and database server times out. Essentially, it took too long for the query to return data so the connection gets dropped. The MySQL documentation suggests increasing the net_read_timeout or connect_timeout values on the server. If this doesn’t solve the problem, you may need to increase your MySQL client’s timeout values."
|
How to increase it?
Re: MySQL error -
Dayrion - 28.07.2018
Quote:
Originally Posted by Heress
How to increase it?
|
Is that happens on your local server?
Re: MySQL error -
Heress - 28.07.2018
Quote:
Originally Posted by Dayrion
Is that happens on your local server?
|
Yes on localhost