[Problem] When I use mysql_close(), the sql can't connect.
#1

Hello.
I havr problem, I don't know why but when I use mysql_close() on OnGameModeExit, the mysql
cannot conenct in the server.
I saw in the mysql_log:
Quote:

[10:33:43] >> mysql_connect(127.0.0.1, root, ddr, ******) on port 3306
[10:33:43] CMySQLHandler::CMySQLHandler() - constructor called.
[10:33:43] CMySQLHandler::CMySQLHandler() - Connecting to "127.0.0.1" | DB: "ddr" | Username: "root"
[10:33:43] CMySQLHandler::Connect() - Connection was successful.
[10:33:43] CMySQLHandler::Connect() - Auto-Reconnect has been enabled.
[10:33:43] >> mysql_ping( Connection handle: 1 )
[10:33:43] CMySQLHandler::Ping() - Connection is still alive.
[10:33:43] >> mysql_close( Connection handle: 1 )
[10:33:43] CMySQLHandler::~CMySQLHandler() - deconstructor called.
[10:33:43] CMySQLHandler::FreeResult() - The result is already empty.
[10:33:43] CMySQLHandler:isconnect() - Connection was closed.

but when I remove the mysql_close, he can connect.
Thanks.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)