My SQL Issue.
#1

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.
Reply
#2

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", "");
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)