SA-MP Forums Archive
Can't connect to MySQL (10061) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Can't connect to MySQL (10061) (/showthread.php?tid=472571)



Can't connect to MySQL (10061) - dusk - 29.10.2013

Hello,

I can not connect to my MySQL server. Here is the MySQL log:
pawn Код:
[11:55:52] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061)
[11:55:53] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061)
Mysql connect line:
pawn Код:
DbHandle = mysql_connect("localhost","root","server","");
I'm using WAMP. The server is up and running(green). I connect to phpmyadmin without a password or problems.

I'm using R33 plugin.


Re: Can't connect to MySQL (10061) - Konstantinos - 29.10.2013

I don't know why, but why don't you create another user with password and try connect to MySQL server from that user? (I do the same because I had few problems with localhost and password).


Re: Can't connect to MySQL (10061) - dusk - 29.10.2013

Didn't help, the errors stay the same.... Thanks for trying


Re: Can't connect to MySQL (10061) - dusk - 29.10.2013

I also tried re-installing WAMP.