MySQL Don't Connect
#1

Hello People,

I'm creating a server, but it don't work.
The MySQL Connection fails.. Can anyone view my problem?


Код:
#define SQL_HOST "149.210.128.9"
#define SQL_USER "gepestword_strcm"
#define SQL_PASS "(SECRET :D)"
#define SQL_DB 	 "gepestword_strcm"

main()
{
	print("\n----------------------------------");
	print(" Blank Gamemode by your name here");
	print("----------------------------------\n");
}

public OnGameModeInit()
{
	mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);
 	if(mysql_ping() == -1) printf("MySQL connection attempt %d failed!");
  	else
	{
 		print("succes");
	}
	
    mysql_query("CREATE TABLE IF NOT EXISTS LSRPUsers(user VARCHAR(24), password VARCHAR(40), score INT(20), money INT(20), level INT(20), vip INT(20), kma INT(20), rank INT(20), kills INT(20), deaths INT(20), muted INT(20), jailed INT(20), frozen INT(20), mutedtimes INT(20), jailedtimes INT(20), frozentimes INT(20), banned INT(20), bannedby VARCHAR(24), logins INT(20), posx INT(20), posy INT(20), posz INT(20), posa INT(20), IP VARCHAR(15) )");
    mysql_debug(1);
	SetGameModeText("Blank Script");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	return 1;
}
I allowed all connections in my webhost etc.
Website config works but SAMP can't connect to it.. Anyone know a solution??


SKYPE: Gilian.Abels
Greetz Gilian,
Reply


Messages In This Thread
MySQL Don't Connect - by GilianAbels - 19.12.2013, 23:54
Re: MySQL Don't Connect - by Brandon_More - 20.12.2013, 00:37
Re: MySQL Don't Connect - by Emmet_ - 20.12.2013, 00:40
Re: MySQL Don't Connect - by GilianAbels - 20.12.2013, 10:24
Re: MySQL Don't Connect - by Emmet_ - 20.12.2013, 10:26
Re: MySQL Don't Connect - by GilianAbels - 20.12.2013, 10:46
Re: MySQL Don't Connect - by doreto - 20.12.2013, 10:48
Re: MySQL Don't Connect - by Khanz - 20.12.2013, 11:18
Re: MySQL Don't Connect - by GilianAbels - 20.12.2013, 14:58
Re: MySQL Don't Connect - by DJ_Shocker - 20.12.2013, 15:47

Forum Jump:


Users browsing this thread: 1 Guest(s)