07.01.2017, 11:32
new MySQL:g_Sql, error;
g_Sql = mysql_connect(mysql_host, mysql_user, mysql_database, mysql_password);
error = mysql_errno();
if (!error) SendClientMessage(playerid, COLOR_RED, "Successfully connected to the database.");
else
{
format(string, sizeof(string), "Failed to connect to the database. Error: %d", error);
SendClientMessage(playerid, COLOR_RED, string);
}
i always get error : 1045
mysql_host, mysql_user, mysql_database, mysql_password are correct
g_Sql = mysql_connect(mysql_host, mysql_user, mysql_database, mysql_password);
error = mysql_errno();
if (!error) SendClientMessage(playerid, COLOR_RED, "Successfully connected to the database.");
else
{
format(string, sizeof(string), "Failed to connect to the database. Error: %d", error);
SendClientMessage(playerid, COLOR_RED, string);
}
i always get error : 1045
mysql_host, mysql_user, mysql_database, mysql_password are correct