2

At my local zend project I've got such problem, when I try to connect to remote mysql server.

Here application.ini part:

resources.db.adapter = PDO_MYSQL
resources.db.params.host = www.my-site.com
resources.db.params.port = 3306
resources.db.params.username = root
resources.db.params.password = 123
resources.db.params.dbname = mydb

When I refreshing page appears such error:

Fatal error: in D:\_www\enoiq.lcl\library\Zend\Db\Adapter\Pdo\Abstract.php on line 145

print_r($e->getMessage()); before line with error shows:

SQLSTATE[HY000] [2002] 

Where my mistake?

Thanks!

Vlad S.
  • 51
  • 8
  • Remote access Enebled on Server? – RDK Oct 17 '12 at 13:43
  • MySQL is running? Your error is 'ERROR 2002 (HY000): Can't connect to local MySQL server through socket'. Check firewall. Try connecting from your MySQL GUI tool or command line? Does that work? – ficuscr Oct 17 '12 at 16:59
  • yes, it is working - site copy located on remote host - is working as planned. – Vlad S. Oct 18 '12 at 13:50

0 Answers0