SA-MP Forums Archive
MySQL Connection Issue - 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 Connection Issue (/showthread.php?tid=553807)



MySQL Connection Issue - Sascha - 31.12.2014

Hi,
I'm having a little problem connecting my mysql DB....

Код:
[MySQL] Error (0): Failed to connect. Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2).
is returning when trying to connect to mysql or executing any mysql function...

I have mysql installed on the vps (debian). The tables are correct, too according to phpmyadmin...
The login data should be correct, too (tried IP as localhost and with actual IP).

Does anyone know how to solve this?


Re: MySQL Connection Issue - ball - 31.12.2014

Try 127.0.0.1 or full IP


Re: MySQL Connection Issue - Sascha - 01.01.2015

Did that, Same error.... Connecting via Website works fine


Re: MySQL Connection Issue - Ryz - 01.01.2015

check this page for answer http://stackoverflow.com/questions/4...sql-mysql-sock


AW: MySQL Connection Issue - Sascha - 01.01.2015

thank you, problem solved