GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => Segítségkérés => A témát indította: dexi - 2012. április 05. - 19:39:27

Cím: MYSQL csatlakozás (atw) hiba
Írta: dexi - 2012. április 05. - 19:39:27
[19:31:08] ---------------------------
[19:31:08] MySQL Debugging activated (04/05/12)
[19:31:08] ---------------------------
[19:31:08] 
[19:31:08] >> mysql_query( Connection handle: 1 )
[19:31:08] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
[19:31:08] >> mysql_free_result( Connection handle: 1 )
[19:31:08] CMySQLHandler::FreeResult() - There is nothing to free (Reason: Connection is dead)
[19:33:16] >> mysql_connect( )
[19:33:16] CMySQLHandler::CMySQLHandler() - constructor called.
[19:33:16] CMySQLHandler::CMySQLHandler() - Connecting to \"localhost\" | DB: \"mysqldb\" | Username: \"mysqldb\" ...
[19:33:16] CMySQLHandler::Connect() - Access denied for user \'mysqldb\'@\'localhost\' (using password: YES) (Error ID: 1045)
[19:33:16] 
[19:33:16] ---------------------------
[19:33:16] MySQL Debugging activated (04/05/12)
[19:33:16] ---------------------------
[19:33:16] 
[19:33:16] >> mysql_query( Connection handle: 1 )
[19:33:16] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
[19:33:16] >> mysql_free_result( Connection handle: 1 )
[19:33:16] CMySQLHandler::FreeResult() - There is nothing to free (Reason: Connection is dead)

 
Ezt írja a log.
Connect:
 
    mysql_connect( \"localhost\", \"mysqldb\", \"mysqldb\", \"****\" ); // Az ember véletlen itt hagyja a jelszavát... faszák vagytok.
mysql_debug( 1 );
 
mysql_query( \"CREATE TABLE IF NOT EXISTS `Felhasznalok` (`Nev`, `Jelszo`)\" );
mysql_free_result( );
Cím: MYSQL csatlakozás (atw) hiba
Írta: Casamiro - 2012. április 05. - 21:12:36
Ha jól tudom ATW -re nincs külsõ MySQL csatlakozás.
Cím: MYSQL csatlakozás (atw) hiba
Írta: Benceee - 2012. április 05. - 21:39:26
ATW-re nincs külsõ MySQL. Módban pedig, ha nem local szerverre kapcsolódsz, hanem távolira, akkor nem localhost kell.