0

I am running a version of magento 1.9 locally.

Everything works fine except shell scripts (indexer etc). They return:

PHP Fatal error: Uncaught PDOException: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/kamran/Projects/Work/kiyv/magento/lib/Zend/Db/Adapter/Pdo/Abstract.php:128

As i understand it means that the host parameter for PDO connection is wrong. But in fact it is correctly specified in local.xml file and website connects to the db and works without any issues on my local machine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.