Error with a remote mysql connection

For programming and general questions on Zend Framework

Error with a remote mysql connection

Postby djfab3345 on Sat Jul 07, 2012 6:20 pm

Hello,

I have a zend project wich use a remote mysql server.

I have 2 unix server, one http and one mysql.

When i try to connect from the project i have this error message, on local all work and parameters are same exept the host :

Code: Select all
Message: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)


This is my config :

Code: Select all
resources.db.adapter = "mysqli"
resources.db.params.username = "user"
resources.db.params.password = "*********"
resources.db.params.dbname = "my_base"
ressources.db.params.host = "79.98.**.**"
ressources.db.params.port = "3306"


When i do a manual connection without zend framework all is working, i don't understant :(
djfab3345
 
Posts: 4
Joined: Sat May 19, 2012 2:38 pm

Re: Error with a remote mysql connection

Postby djfab3345 on Sat Jul 07, 2012 6:50 pm

EDIT : Fixed, i made a mistake into "resource" -_-
djfab3345
 
Posts: 4
Joined: Sat May 19, 2012 2:38 pm


Return to Zend Framework

Who is online

Users browsing this forum: hari6964 and 7 guests