SA-MP Forums Archive
mySQL plugin connecting 3 times? - 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 plugin connecting 3 times? (/showthread.php?tid=500307)



mySQL plugin connecting 3 times? - MP2 - 12.03.2014

In mysql_log:

Quote:

[16:21:28] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[16:21:28] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[16:21:28] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[16:21:28] [DEBUG] CMySQLConnection::Connect - connection was successful
[16:21:28] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been enabled
[16:21:28] [DEBUG] CMySQLConnection::Connect - connection was successful
[16:21:28] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been enabled
[16:21:28] [DEBUG] CMySQLConnection::Connect - connection was successful
[16:21:28] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been enabled

But mysql_connect is only used once. Why does it seem to be connecting 3 times?


Re: mySQL plugin connecting 3 times? - azzerking - 12.03.2014

Are you sure, you only calling it once and that the plugin is a good plugin and not faulty?

Also, go do some trial and error, by disabling everything mysql and running just the connect function and try that.


Re: mySQL plugin connecting 3 times? - maddinat0r - 12.03.2014

Take a look at this post, it should answer your question.


Re: mySQL plugin connecting 3 times? - MP2 - 12.03.2014

I see, thank you.