SA-MP Forums Archive
SA: MP. MySQL 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: SA: MP. MySQL Problem (/showthread.php?tid=595739)



SA: MP. MySQL Problem - Gooby120 - 07.12.2015

[20:45:17] [MySQL] Error (0): Failed to connect. Can't connect to MySQL server on 'host' (111).
[20:45:17] [MySQL] Error (0): Function: mysql_ping called when not connected to any database. Can't connect to MySQL server on 'host' (111).

What i must to do?


I think i do it good.
native mysql_connect(const host[my host], const user[my Login, const pass[my password], const db[db name], MySQL:handle = (MySQL:0), auto_reconnect = 0);


Re: SA: MP. MySQL Problem - Sublime - 07.12.2015

localhost, not host

did you setup a mysql server? did you start it?


Re: SA: MP. MySQL Problem - EmilLykke - 07.12.2015

You need to put it to "localhost" rather than "host"


Re: SA: MP. MySQL Problem - ozm8ey - 08.12.2015

I don't have a samp server but i have a minecraft server that uses mysql, If localhost doesn't work then put in the address/ip as the host and make sure your mysql username has all privileges


Re: SA: MP. MySQL Problem - Gooby120 - 09.12.2015

Where am I supposed to paste ? in mysql.ini ?
for instance this is my host: sql.pukawka.pl. I think