Bonsoir,
J'ai un problème assez spéciale...
Sur mon VPS j'ai installer mon serveur avec le plugin mysql. Cependant quand je me connecte dessus et quand je rentre mon mot de passe pour me connecter, le serveur crash tandis qu'en local (windows) il n'y a aucun crash.
Dans le fichier de Debug :
02:14:27] ---------------------------
[02:14:27] MySQL Debugging activated (11/12/12)
[02:14:27] ---------------------------
[02:14:27]
[02:14:57] >> mysql_ping( Connection handle: 1 )
[02:14:57] CMySQLHandler::Ping() - Connection is still alive.
[02:14:57] >> mysql_real_escape_string( Connection handle: 1 )
[02:14:57] CMySQLHandler::EscapeString(Milton_Velasquez); - Escaped 16 characters to Milton_Velasquez.
[02:14:57] >> mysql_query( Connection handle: 1 )
[02:14:57] CMySQLHandler::Query(SELECT id FROM joueurs WHERE LOWER(Nom) = LOWER('Milton_Velasquez') LIMIT 1) - Successfully executed.
[02:14:57] >> mysql_store_result( Connection handle: 1 )
[02:14:57] CMySQLHandler::StoreResult() - Result was stored.
[02:14:57] >> mysql_num_rows( Connection handle: 1 )
[02:14:57] CMySQLHandler::NumRows() - Returned 1 row(s)
[02:14:57] >> mysql_fetch_row_format( Connection handle: 1 )
[02:14:57] CMySQLHandler::FetchRow() - Return: 1
[02:15:04] >> mysql_ping( Connection handle: 1 )
[02:15:04] CMySQLHandler::Ping() - Connection is still alive.
[02:15:04] >> mysql_query( Connection handle: 1 )
[02:15:04] CMySQLHandler::Query(SELECT Password FROM joueurs WHERE id = 1 LIMIT 1) - Successfully executed.
[02:15:04] >> mysql_store_result( Connection handle: 1 )
[02:15:04] CMySQLHandler::StoreResult() - Result was stored.
[02:15:04] >> mysql_fetch_row_format( Connection handle: 1 )
[02:15:04] CMySQLHandler::FetchRow() - Return: peace
[02:15:04] >> mysql_query( Connection handle: 1 )
[02:15:04] CMySQLHandler::Query(SELECT * FROM joueurs WHERE id = 1 LIMIT 1) - Successfully executed.
[02:15:04] >> mysql_store_result( Connection handle: 1 )
[02:15:04] CMySQLHandler::StoreResult() - Result was stored.
[02:15:04] >> mysql_fetch_row_format( Connection handle: 1 )
[02:15:04] CMySQLHandler::FetchRow() - Return: 1|Milton_Velasquez|peace|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|180|240|950|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|aucun|1
[02:15:04] >> mysql_fetch_field_row( Connection handle: 1 )
Dans les log du serveur :
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3e-R2, (C)2005-2012 SA-MP Team
[02:14:26] filterscripts = "" (string)
[02:14:26]
[02:14:26] Server Plugins
[02:14:26] --------------
[02:14:26] Loading plugin: streamer.so
[02:14:27]
*** Streamer Plugin v2.6.1 by Incognito loaded ***
[02:14:27] Loaded.
[02:14:27] Loading plugin: mysql.so
[02:14:27]
> MySQL plugin R6 successfully loaded.
[02:14:27] Loaded.
[02:14:27] Loaded 2 plugins.
[02:14:27]
[02:14:27] Filterscripts
[02:14:27] ---------------
[02:14:27] Loaded 0 filterscripts.
[02:14:27] MYSQL: Connection seems dead, retrying...
[02:14:27] MYSQL: Attempting to connect to server...
[02:14:27] MYSQL: Database connection established.
[02:14:27] MYSQL: Reconnection successful. We can continue as normal.
[02:14:27]
[02:14:27] The Fall
[02:14:27] ____________________________
[02:14:27] Script By Keno_Taler & Milton_Velasquez
[02:14:27]
[02:14:27] MYSQL: Attempting to connect to server...
[02:14:27] MYSQL: Database connection established.
[02:14:27] Number of vehicle models: 3
[02:14:27] Incoming connection: 127.0.0.1:56496
[02:14:27] Incoming connection: 127.0.0.1:54892
[02:14:27] Incoming connection: 127.0.0.1:59011
[02:14:27] Incoming connection: 127.0.0.1:52806
[02:14:27] Incoming connection: 127.0.0.1:40258
[02:14:27] Incoming connection: 127.0.0.1:45632
[02:14:27] Incoming connection: 127.0.0.1:44309
[02:14:27] Incoming connection: 127.0.0.1:51801
[02:14:27] [npc:join] Chef_Ombre has joined the server (0:127.0.0.1)
[02:14:27] [npc:join] Garde_Ombre has joined the server (1:127.0.0.1)
[02:14:27] [npc:join] Chef_Gno has joined the server (2:127.0.0.1)
[02:14:27] [npc:join] Chef_Seek has joined the server (4:127.0.0.1)
[02:14:27] [npc:join] Garde_Seek has joined the server (5:127.0.0.1)
[02:14:27] [npc:join] Garde_Gno has joined the server (3:127.0.0.1)
[02:14:27] [npc:join] Chef_Rask has joined the server (6:127.0.0.1)
[02:14:27] [npc:join] Garde_Rask has joined the server (7:127.0.0.1)
[02:14:57] Incoming connection: 86.208.47.24:55923
[02:14:57] [join] Milton_Velasquez has joined the server (8:86.208.47.24)
Dans mon Onplayerlogin :
new query[256];
format(query, sizeof(query), "SELECT Password FROM joueurs WHERE id = %d LIMIT 1", PlayerInfo[playerid][pSQLID]);
mysql_query(query);
mysql_store_result();
mysql_fetch_row(PlayerInfo[playerid][pKey]);
if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 )
{
new field[64];
new data[1024];
format(query, sizeof(query), "SELECT * FROM joueurs WHERE id = %d LIMIT 1", PlayerInfo[playerid][pSQLID]);
mysql_query(query);
mysql_store_result();
mysql_fetch_row(data);
mysql_fetch_field_row(field, "Tut"); // crash
PlayerInfo[playerid][pTut] = strval(field);
Voila si vous comprenez pourquoi le serveur debian crash et si vous pourriez m'aider car la je trouve pas.
config :
Debian 6
Mysql R6 by GStyle
Streamer by incognito
libmysql 16
apache 2/php/mysql