SA-MP Forums Archive
Help again about mysql connection - 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: Help again about mysql connection (/showthread.php?tid=612128)



Help again about mysql connection - Zeus666 - 14.07.2016

Server log error

Код:
[17:40:22] [DayZ MySQL]: Connection to database (dayz) failed!

gamemode line

Код HTML:
#define mysql_host "localhost"
#define mysql_user  "zp_hid11784"
#define mysql_password "---------"
#define mysql_database  "zp_hid11784"

What's going on..


Re: Help again about mysql connection - xPhantom - 14.07.2016

If you are trying to connect your server through your host, ask them for the MySQL host IP if localhost is not working. If they say localhost is okay then make sure your mysql username, password, and database name is correct.


Re: Help again about mysql connection - Flake. - 14.07.2016

If you're running it on your localhost with xamp or wamp by default there won't be a password set for the MySQL dtabase, if that's the case make sure you leave the password field blank.


Re: Help again about mysql connection - Zeus666 - 14.07.2016

Well I resolved it. I was figuring out why it won't work and I pressed "post" mistakenly.

Sorry guys.

Thanks for your help anyway


( I was editing the wrong GM in the wrong folder)