MYSQL Error
#8

Quote:

I changed it.
#define MYSQL_HOST "localhost"
#define MYSQL_USER "root"
#define MYSQL_PASS "nestomyks"
#define MYSQL_DB "nestomyks"

Quote:

public MySQLConnect(sqlhost[], sqluser[], sqlpass[], sqldb[]) // by Luk0r
{
print("MYSQL: Attempting to connect to server...");
mysql_connect(sqlhost, sqluser, sqldb, sqlpass);
if(mysql_ping()==0)
{
print("MYSQL: Database connection established.");
return 1;
}
else
{
print("MYSQL: Connection error, retrying...");
mysql_connect(sqlhost, sqluser, sqldb, sqlpass);
if(mysql_ping()==0)
{
print("MYSQL: Reconnection successful. We can continue as normal.");
return 1;
}
else
{
print("MYSQL: Could not reconnect to server, terminating server...");
SendRconCommand("exit");
return 0;
}
}
}

Quote:

[20:27:56] Loaded.
[20:27:56] Loading plugin: mysql
[20:27:56]

> MySQL plugin R5 successfully loaded.

[20:27:56] Loaded.
[20:27:56] Loaded 2 plugins.

[20:27:56]
[20:27:56] Filterscripts
[20:27:56] ---------------
[20:27:56] Loaded 0 filterscripts.

[20:27:56] AllowAdminTeleport() : function is deprecated. Please see OnPlayerClickMap()
[20:27:56] Pickups Max = 100, Current Pickups = 234
[20:27:56] EEEEE
[20:27:56] C C RR V V E RR
[20:27:56] C R R O O O V V E R R
[20:27:56] C R R O O V V EEEEE R R
[20:27:56] C RR O O V V E RR
[20:27:56] C R R O O O V V E R R
[20:27:56] C C R R V EEEEE R R
[20:27:56] MYSQL: Attempting to connect to server...
[20:27:56] MYSQL: Connection error, retrying...
[20:27:56] MYSQL: Could not reconnect to server, terminating server...
[20:27:56] Number of vehicle models: 74
[20:27:56] --- Server Shutting Down.
[20:27:56]

*** Streamer Plugin v2.6.1 by Incognito unloaded ***

Running through it.
Reply


Messages In This Thread
MYSQL Error - by arititlez - 08.09.2012, 12:27
Re: MYSQL Error - by Glint - 08.09.2012, 12:33
Re: MYSQL Error - by arititlez - 08.09.2012, 12:35
Re: MYSQL Error - by Glint - 08.09.2012, 12:38
Re: MYSQL Error - by arititlez - 08.09.2012, 12:38
Re: MYSQL Error - by arititlez - 08.09.2012, 13:04
Re: MYSQL Error - by Glint - 08.09.2012, 13:10
Re: MYSQL Error - by arititlez - 08.09.2012, 13:13
Re: MYSQL Error - by arititlez - 08.09.2012, 13:46
Re: MYSQL Error - by mamorunl - 08.09.2012, 13:50

Forum Jump:


Users browsing this thread: 1 Guest(s)