SA-MP Forums Archive
MySql cannot connect - 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 cannot connect (/showthread.php?tid=585291)



MySql cannot connect - andreistalker - 12.08.2015

I can't connect my server to mysql.
I done it right but don't working, on localhost is working but i have a server and not working after i edited...


Re: MySql cannot connect - SpikY_ - 12.08.2015

Show us the mysql.log if you have?


Re: MySql cannot connect - Andre02 - 12.08.2015

make sure your host uses the same as you do = linux: .so or windows: .dll


Re: MySql cannot connect - Scenario - 12.08.2015

Your host may not allow external connections. If you're trying to run the server on your home computer and connect to the MySQL server at your host this may not work. Many providers only allow local MySQL connections (meaning it has to be run at the host- not from your home).


Re: MySql cannot connect - andreistalker - 12.08.2015

So i tried with port and saying this
PHP код:
[16:44:31] [ERRORCMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '185.25.204.34' (111) 



Re: MySql cannot connect - Andre02 - 12.08.2015

Show us your
PHP код:
#define mysql_host "" 



Re: MySql cannot connect - andreistalker - 12.08.2015

PHP код:
#define mysql_host "185.25.204.34" 
I tried with port too


Re: MySql cannot connect - Andre02 - 12.08.2015

I will let someone else help you with this, because im not alot into mySQL so i can't help you alot, try asking to your host also!
Good Luck ^^


Re: MySql cannot connect - thomaswilliams - 12.08.2015

Hello,

Please contact your host and ask for the hostname not the host ip, as I had this problem and it worked with the hostname, but not the host ip.

Thanks,
Thomaswilliams


Re: MySql cannot connect - andreistalker - 12.08.2015

I resolved it