MySQL connection error

2.7k views Asked by At

When I am trying to use SQLyog to connect to my MySQL database, it is giving the error like

Error No. 2005 Unknown MySQL server host 'database.ch3.s.com' (11004)

Any idea what can be the issue?

3

There are 3 answers

3
MattP On BEST ANSWER

Have you tried pinging the hostname, go to the command prompt and type 'ping database.ch3.s.com'

I have found scenarios where the database hostname is not available to external connections (ping will fail) but it works on the server. In this case you simply can't create an external connection to the database and will have to use the servers phpMyAdmin or equivalent.

1
Abhishek On

Databse server may be down or there might be a proxy server which can prevent you to access the DB server.

0
Fokko Driesprong On

The address of the MySQL databases seems to be invalid. The address 'database.ch3.s.com', is this a subsitute or is this the real address you are using?