SA-MP Forums Archive
MySQL R41 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 R41 Error. (/showthread.php?tid=622001)



MySQL R41 Error. - Dayrion - 17.11.2016

Hello.
When I start my server, I've this error
Код:
[11/17/16 20:21:23] [plugins/mysql] plugins/mysql
There is no connexion between the server and the script so every query are useless.
The plugin is correctly loaded.
Код:
[20:15:44]  Loading plugin: mysqlR41.so
[20:15:44]  >> plugin.mysql: R41 successfully loaded.
Thanks for your help!


Re: MySQL R41 Error. - oMa37 - 17.11.2016

If it was an error it would've printed it with tag '[ERROR]'.
It doesn't seem like that.


Re: MySQL R41 Error. - Dayrion - 17.11.2016

This come from error.log


Re: MySQL R41 Error. - SickAttack - 17.11.2016

Are you even trying to establish a connection? Print out the result of the connection status in the console?


Re: MySQL R41 Error. - Dayrion - 17.11.2016

Ye'p I did!
PHP код:
    if(MySQL == MYSQL_INVALID_HANDLE || mysql_errno(MySQL) != 0)
    {
        print(
"Connexion MySQL ratйe, le serveur va s'йteindre.");
        
        
SendRconCommand("exit");
        
        return 
1;
    }
    print(
"[SERVER] Connexion MySQL rйussie."); 



Re: MySQL R41 Error. - SickAttack - 17.11.2016

Check your connection details then.


Re: MySQL R41 Error. - Dayrion - 17.11.2016

How?


Re: MySQL R41 Error. - Dayrion - 18.11.2016

Bump. :/


Re: MySQL R41 Error. - TheDarkBlade - 18.11.2016

check your mysql password , database name etc.to be correct on mysql_connect


Re: MySQL R41 Error. - Dayrion - 18.11.2016

Everything is fine because I've the message which confirm me the DB is connected.

PHP код:
    if(MySQL == MYSQL_INVALID_HANDLE || mysql_errno(MySQL) != 0)
    {
        print(
"MSQL failed to connect. The server will shut down0");
        
        
SendRconCommand("exit");
        
        return 
1;
    }
    print(
"[SERVER] MySQL connection done.");