SA-MP Forums Archive
Mysql remote connection - 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: Mysql remote connection (/showthread.php?tid=442168)



Mysql remote connection - Sascha - 06.06.2013

Hi guys, I have a small problem with my remote connection...
The database worked on localhost before, now I moved the server to a hosted one and the database to my website and it doesn't work anymore...
I get this error:
Код:
[11:25:46] [MySQL] Error (0): Failed to connect. Can't connect to MySQL server on 'XX.XXX.XXX.XXX' (10060).
(the X's are normally the IP )...
As HOST I've used the public IP of my website and I even allowed the remote access on the website....
any ideas what I could've done wrong?


Re: Mysql remote connection - Vince - 06.06.2013

Remote connections are slow, slow, slow! If your host doesn't supply you with a database then move hosts. There should never be a need to supply an IP that goes beyond the local network. In fact, most hosts block remote connections to their databases for security reasons.


Re: Mysql remote connection - Sascha - 06.06.2013

alright thanks, that might really be the problem :P