MySQL problem
#1

!: Sorry for posting here but I can't post in scripting help, this also happened to other people so it may be a bug, they posted in General about it.



Well my problem is this:
Code:
[MYSQL]: [ERROR]: Connection to `delceaga_samp` failed!
Why?

I am sure that I have the password and everything right in the defines.


Code:
public ConnectMySQL()
{
	mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);

	if(mysql_ping() == 1)
 	{
  		mysql_debug(1);
	    printf("[MYSQL]: Connection to `%s` succesful!", SQL_DB);
	}
	else
	{
	    printf("[MYSQL]: [ERROR]: Connection to `%s` failed!", SQL_DB);
	}
	return 1;
}
Reply


Messages In This Thread
MySQL problem - by AndreiWow - 27.01.2017, 23:46
Re: MySQL problem - by renatog - 27.01.2017, 23:54
Re: MySQL problem - by AndreiWow - 27.01.2017, 23:58
Re: MySQL problem - by renatog - 28.01.2017, 01:18
Re: MySQL problem - by DerickClark - 28.01.2017, 01:25
Re: MySQL problem - by AndreiWow - 28.01.2017, 01:39
Re: MySQL problem - by DerickClark - 28.01.2017, 01:40
Re: MySQL problem - by AndreiWow - 28.01.2017, 01:42
Re: MySQL problem - by DerickClark - 28.01.2017, 01:44
Re: MySQL problem - by AndreiWow - 28.01.2017, 01:45
Re: MySQL problem - by renatog - 28.01.2017, 01:57
Re: MySQL problem - by DerickClark - 28.01.2017, 02:01
Re: MySQL problem - by AndreiWow - 28.01.2017, 03:00
Re: MySQL problem - by DerickClark - 28.01.2017, 03:02
Re: MySQL problem - by AndreiWow - 28.01.2017, 03:04
Re: MySQL problem - by renatog - 28.01.2017, 11:13
Re: MySQL problem - by Snich - 05.02.2017, 21:18
Re: MySQL problem - by Vince - 05.02.2017, 21:58
Re: MySQL problem - by BlackBank - 05.02.2017, 22:43
Re: MySQL problem - by DRIFT_HUNTER - 05.02.2017, 23:32
Re: MySQL problem - by X337 - 06.02.2017, 02:34

Forum Jump:


Users browsing this thread: 3 Guest(s)