zend framework - ZendFramework error: getaddrinfo failed: nodename nor servname provided -


i install mysql, php nginx on mac os x. first time install on mac, far i've used linux.

i got error when try run zend application.

i tried instead of localhost enter ip adress , 127.0.0.1, same error.

fatal error: uncaught exception 'zend_db_adapter_mysqli_exception' message 'php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known' in zendframework-1.10.7/library/zend/db/adapter/mysqli.php:333 stack trace:

0 zendframework-1.10.7/library/zend/db/adapter/abstract.php(304): zend_db_adapter_mysqli->_connect() 1 zendframework-1.10.7/library/zend/db/adapter/mysqli.php(194): zend_db_adapter_abstract->getconnection() 2 zendframework-1.10.7/library/zend/db/table/abstract.php(823): zend_db_adapter_mysqli->describetable('site_page', null) 3 zendframework-1.10.7/library/zend/db/table/abstract.php(862): zend_db_table_abstract->_setupmetadata() 4 zendframework-1.10.7/library/zend/db/table/abstract.php(969): zend_db_table_abstract->_setupprimarykey() 5 zendframework-1.10.7/library/zend/db/table/select.php(100): zend_db_table_abstract->info() 6 in zendframework-1.10.7/library/zend/db/adapter/mysqli.php on line 333

all components installed -> http://blog.frd.mn/install-nginx-php-fpm-mysql-and-phpmyadmin-on-os-x-mavericks-using-homebrew/ tutorial.

phpmyadmin installed , working. can't run zend application.

version: os x yosemite 10.12.2

zendframework: 1.10.7

php: 5.6.7

mysql: 14.14 distrib 5.6.23, osx10.10 (x86_64) using editline wrapper

i use textedit app built os x disable feature called "smart quotes" preferences of textedit , have replace existing quotes in code. ok now.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -