03.08.2015, 18:59
So after a while my server loses MySQL connection.
This is the last thing in MySQL log:
So I made a command to connect to the database again:
But that wont do anything, the login/register dialog still wont be shown.
14:18 was the last MySql event, after that none of the logins/registers worked, even after I reconnect DB at 14:53:
So after some time (this case 14:18) database stop working, login system not working, nothing printed in MySQL log when I try to login after that. Even when connect database 14:53, still nothing printed to log when try register or anything.. How to fix?
This is the last thing in MySQL log:
Код:
[14:18:06] [DEBUG] CMySQLQuery::Execute[OnAccountRegister(i)] - starting query execution [14:18:06] [DEBUG] CMySQLQuery::Execute[OnAccountRegister(i)] - query was successful [14:18:06] [DEBUG] CMySQLResult::CMySQLResult() - constructor called [14:18:06] [DEBUG] CMySQLQuery::Execute[OnAccountRegister(i)] - data being passed to ProcessCallbacks() [14:18:06] [DEBUG] Calling callback "OnAccountRegister".. [14:18:06] [DEBUG] cache_insert_id - connection: 1 [14:18:06] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called [14:18:06] [DEBUG] CMySQLQuery::~CMySQLQuery() - deconstructor called
Код:
mysql = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_DATABASE, MYSQL_PASSWORD); return 1;
14:18 was the last MySql event, after that none of the logins/registers worked, even after I reconnect DB at 14:53:
Код:
[14:53:18] [DEBUG] mysql_connect - host: "127.0.0.1", user: "XXXX", database: "XXXX, password: "****", port: 3306, autoreconnect: true [14:53:18] [WARNING] CMySQLHandle::Create - connection already exists [14:53:18] [DEBUG] CMySQLConnection::Connect - connection was successful [14:53:18] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been enabled [14:53:18] [DEBUG] CMySQLConnection::Connect - connection was successful [14:53:18] [DEBUG] CMySQLConnection::Connect - auto-reconnect has been enabled