PDA

View Full Version : MySql cannot connect


andreistalker
12/08/2015, 01:54 PM
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...

SpikY_
12/08/2015, 03:47 PM
Show us the mysql.log if you have?

Andre02
12/08/2015, 03:54 PM
make sure your host uses the same as you do = linux: .so or windows: .dll

Scenario
12/08/2015, 04:04 PM
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).

andreistalker
12/08/2015, 04:16 PM
So i tried with port and saying this

[16:44:31] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '185.25.204.34' (111)

Andre02
12/08/2015, 04:19 PM
Show us your
#define mysql_host ""

andreistalker
12/08/2015, 04:49 PM
#define mysql_host "185.25.204.34"


I tried with port too

Andre02
12/08/2015, 05:16 PM
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 ^^

thomaswilliams
12/08/2015, 05:27 PM
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

andreistalker
12/08/2015, 05:33 PM
I resolved it