MySQl Debugging help[+REP] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: MySQl Debugging help[+REP] (
/showthread.php?tid=499862)
MySQl Debugging help[+REP] -
PAF - 10.03.2014
[23:03:29]
[23:03:29] ---------------------------
[23:03:29] MySQL Debugging activated (03/09/14)
[23:03:29] ---------------------------
[23:03:29]
[23:03:29] >> mysql_connect( )
[23:03:50] CMySQLHandler::Connect() - Can't connect to MySQL server on 'mysql14.000webhost.com' (10060) (Error ID: 2003)
[23:03:50] >> mysql_query( Connection handle: 1 )
[23:03:50] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
[23:03:50] >> mysql_query( Connection handle: 1 )
[23:03:50] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
[23:03:50] >> mysql_query( Connection handle: 1 )
[23:03:50] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
Re: MySQl Debugging help[+REP] -
GalaxyHostFree - 10.03.2014
Quote:
Originally Posted by PAF
[23:03:29]
[23:03:29] ---------------------------
[23:03:29] MySQL Debugging activated (03/09/14)
[23:03:29] ---------------------------
[23:03:29]
[23:03:29] >> mysql_connect( )
[23:03:50] CMySQLHandler::Connect() - Can't connect to MySQL server on 'mysql14.000webhost.com' (10060) (Error ID: 2003)
[23:03:50] >> mysql_query( Connection handle: 1 )
[23:03:50] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
[23:03:50] >> mysql_query( Connection handle: 1 )
[23:03:50] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
[23:03:50] >> mysql_query( Connection handle: 1 )
[23:03:50] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
|
This might work somehow. Try changing host ip to "localhost" or "127.0.0.1"
Can you also please post here your server_log?
Edit: I don't see any details of the mysql_connect. There should be like this
CMySQLHandler::CMySQLHandler() - Connecting to "Server IP Here" | DB: "Db name here" | Username: "username here"
Quote:
Make sure that
1. Your server is allowing connections to the MySQL host.
2. Your MySQL host is allowing connections to the server.
That error happens when it doesn't connect in the first place. Most free MySQL hosting providers have issues with external SQL connections.
|
Re: MySQl Debugging help[+REP] -
PAF - 10.03.2014
SEE THIS IMAGE
Click here!
Re: MySQl Debugging help[+REP] -
GalaxyHostFree - 10.03.2014
Quote:
Originally Posted by PAF
|
Contact the host/ Make a ticket. Or wait for someone to help you here.