-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Labels
Description
My check MySQL ready function:
if (!MySQL.Ping()){
Log("MySQL not open")
if(!MySQL.Connect("127.0.0.1", "user", "password", "mysql")) {
Log("Error: %v",MySQL.Error)
return false
}
Log("MySQL ready")
}
return true
call CheckReady()
2010/04/24 12:16:55 MySQL not open
2010/04/24 12:16:55 Connect called
2010/04/24 12:16:55 Connected using TCP/IP
2010/04/24 12:16:55 [0] Received init packet from server
2010/04/24 12:16:55 [1] Sent auth packet to server
2010/04/24 12:16:55 [2] Received ok packet from server
2010/04/24 12:16:55 Current result set saved
2010/04/24 12:16:55 MySQL Ready
restart MySQL server
2010/04/24 12:17:13 MySQL not open
2010/04/24 12:17:13 Close called
2010/04/24 12:17:13 Connect called
2010/04/24 12:17:13 Error: Malformed Packet
How correct to restore connections after broke?