SA-MP Forums Archive
Mysql status: Mysql server has gone away - 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 status: Mysql server has gone away (/showthread.php?tid=575155)



Mysql status: Mysql server has gone away - Fantje - 24.05.2015

Here my problem:

Mysql status: Mysql server has gone away

I am sure I connected right. You need to fill in your mysql info in a file named define.dll. Here my info:

PHP код:
/* MySQL Setting */
#define    HOST        "localhost"
#define USER        "root"
#define PASSWORD    "mike"
#define DBNAME        "ccnr"
#define    HOST2        "localhost"
#define USER2        "root"
#define PASSWORD2    "mike"
#define DBNAME2        "ccnr"
#define FORUMDB        "forum" // Unused 
When I start my server I get this:
PHP код:
[13:43:28Mysql Status 
MySQL server has gone away
[13:43:33GPS System Loaded...
[
13:43:33] --------------------------------------
[
13:43:33
-----------------------------------------
[
13:43:33]  California Cops and Robbers by Bondowocopz
[13:43:33] -----------------------------------------
[
13:43:33Number of vehicle models130 
My sql server is on ( xampp ) and I am sure I'm connected right!


Re: Mysql status: Mysql server has gone away - PowerPC603 - 24.05.2015

Maybe it's because you're trying to setup the exact same connection twice (both to the same database with same user and IP).

It makes no sense to connect twice to the same source of data.


Re: Mysql status: Mysql server has gone away - Fantje - 24.05.2015

Quote:
Originally Posted by PowerPC603
Посмотреть сообщение
Maybe it's because you're trying to setup the exact same connection twice (both to the same database with same user and IP).

It makes no sense to connect twice to the same source of data.
No mate, still the problem