Error Connect to Database?

Asked

Viewed 75 times

0

Well I’m trying to make a connection to a database and is giving the following error

"ERROR: SQLSTATE[HY000] [2003] Can’t connect to Mysql server on '167.114.173.210' (13)"

And I have a program "Navicat" and through it I can access this DB, just to make the connection with the site to the DB that is giving this error, already checked and this all right... Does anyone know why you’re giving it away ?


On my pc I am using wamp and giving this error PDO Exception

Already in vps where the site will get from this error

Can't connect to MySQL server

Now on the Navicat

Connection successfull

  • Already checked if the user, password, port and host are correct?

  • @Valdeirpsr, yes as I said I tested on the Navicat and for la the connection makes good

  • I’m hosting the site on a vps linux and db elsewhere

  • How is your connection file? Remember. Some servers do not allow the same name as your location. For example: location: db_data on server: ZL_DB_DADOS

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.