SA-MP Forums Archive
MySQL r38 loading problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: MySQL r38 loading problem (/showthread.php?tid=503796)



MySQL r38 loading problem - Fernado Samuel - 31.03.2014

Hello everyone,

I'm facing problems while I'm trying to load MySQL R38 plugin. My definitions of the host are completely right and it worked well for R6 plugin of MySQL. But this is what I'm facing when I try to load MySQL R38 with the script. On server_log.txt it loads well, but on mysql_log.txt, here's it:

Код:
[ERROR] CMySQLConnection::Connect - (error #2002) Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[10:30:32] [ERROR] CMySQLConnection::Connect - (error #2002) Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
I'm using Ubuntu 13.04 x86_64


Re: MySQL r38 loading problem - KilotD - 31.03.2014

Download Socket.dll/.so and .inc and also define it in your script.


Re: MySQL r38 loading problem - Lordzy - 31.03.2014

Quote:
Originally Posted by KilotD
Посмотреть сообщение
Download Socket.dll/.so and .inc and also define it in your script.
That wouldn't just fix, it's not in regarding the "Socket" plugin requirement.


Re: MySQL r38 loading problem - Fernado Samuel - 01.04.2014

Dump!!!!!!!!!!


Re: MySQL r38 loading problem - maddinat0r - 02.04.2014

Quote:
Originally Posted by Fernado Samuel
Посмотреть сообщение
Dump!!!!!!!!!!
I think that's called "bump"...

Anyway, use the static version, that should solve your problem (use 'mysql_static.so').


Re: MySQL r38 loading problem - Fernado Samuel - 03.04.2014

Thanks for your reply but I'm using mysql_static.so . It loads well on server_log.txt but the connection to database fails or any MySQL function fails.


Re: MySQL r38 loading problem - Johnny_Robins - 08.05.2014

im too having this issue


Re: MySQL r38 loading problem - polander - 08.05.2014

Try connect to host '127.0.0.1' instead of 'localhost'


Re: MySQL r38 loading problem - Konstantinos - 08.05.2014

In mysql_connect function, do you use as host "localhost"? If yes, then change it to "127.0.0.1".

EDIT: Too late - I didn't refresh the page.


Re: MySQL r38 loading problem - AiRaLoKa - 17.05.2014

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
In mysql_connect function, do you use as host "localhost"? If yes, then change it to "127.0.0.1".

EDIT: Too late - I didn't refresh the page.
LOL

i've got this problem too....
and i use 'localhost' too....
i will try to change it....

EDIT:
it's really worked!

BlueG should fix this bug....