My SQL Issue. - 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: My SQL Issue. (
/showthread.php?tid=506844)
My SQL Issue. -
J4mmyHD - 14.04.2014
pawn Код:
public OnGameModeInit()
{
mysql_init();
mysql_connect("127.0.0.1", "sunset", "", "sunsetroleplay");
SetGameModeText(SERVER_VERSION);
return 1;
}
But When I open the server, I get this error.
Код:
[Mon Apr 14 20:12:04 2014] -------------------------
[Mon Apr 14 20:12:04 2014] Logging Started
[Mon Apr 14 20:12:04 2014] -------------------------
[Mon Apr 14 20:12:07 2014] Error (0): Failed to connect. Access denied for user 'sunset'@'localhost' (using password: YES).
Help please.
Re: My SQL Issue. -
Mattakil - 14.04.2014
pawn Код:
mysql_connect(mysql_host, mysql_user, mysql_database, mysql_password);
Check your order.
Change it to
pawn Код:
mysql_connect("127.0.0.1", "sunset", "sunsetroleplay", "");
Re: My SQL Issue. -
J4mmyHD - 14.04.2014
Quote:
Originally Posted by Mattakil
pawn Код:
mysql_connect(mysql_host, mysql_user, mysql_database, mysql_password);
Check your order.
|
Nope. I am using
this MySQL.