MySQL Connect failure
#1

Hello.

For some reason my gamemode refuses to connect to MySQL. I have made sure that the server is up and running (ping'ed and tried to connect with php). The mysql is included in the pwn file. libmysql.dll and mysql.dll is placed in the right folders. The DB information match.
Код:
#define SQL_HOST "localhost"
#define SQL_USER "root"
#define SQL_PASS "hidden"
#define SQL_DB "samp"
OnGameModeInit()
Код:
mysql_connect(SQL_HOST, SQL_USER, SQL_PASS, SQL_DB);
Edit:
Here's the error.
Код:
[16:16:46] [MySQL] Error (0): Function: mysql_connect failed, mysql was not initialized on this handle.
Sincerly hanzen
Reply


Messages In This Thread
MySQL Connect failure - by hanzen - 05.12.2010, 14:46
Re: MySQL Connect failure - by Hornet600 - 05.12.2010, 14:53
Re: MySQL Connect failure - by hanzen - 05.12.2010, 14:55
Re: MySQL Connect failure - by Cameltoe - 05.12.2010, 14:56
Re: MySQL Connect failure - by hanzen - 05.12.2010, 15:00

Forum Jump:


Users browsing this thread: 2 Guest(s)