Hi All I've got a link with an information base and each time there's an issue hooking up i recieve this error.

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2003] Can't connect with MySQL server on '' (4)' in /data/18/2/77/115/2566441/user/2813515/htdocs/ZendFramework-1.11.5/library/Zend/Db/Adapter/Pdo/Abstract.php:129 Stack trace: # /data/18/2/77/115/2566441/user/2813515/htdocs/ZendFramework-1.11.5/library/Zend/Db/Adapter/Pdo/Abstract.php(129): PDO->__construct('mysql:dbname=si...', 'xxx', 'xxx', Array) #1 /data/18/2/77/115/2566441/user/2813515/htdocs/ZendFramework-1.11.5/library/Zend/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->_connect() #2 /data/18/2/77/115/2566441/user/2813515/htdocs/ZendFramework-1.11.5/library/Zend/Db/Adapter/Abstract.php(459): Zend_Db_Adapter_Pdo_Mysql->_connect() #3 /data/18/2/77/115/2566441/user/2813515/htdocs/ZendFramework-1.11.5/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('DESCRIBE user', Array) #4 /data/18/2/77/115/2566441/user/2813515/htdocs/ZendFramework-1.11.5/library/Zend/Db/Adapter/Pdo/Mysq in /data/18/2/77/115/2566441/user/2813515/htdocs/ZendFramework-1.11.5/library/Zend/Db/Adapter/Pdo/Abstract.php online 144

The truth is which i get my user and password on return it is possible to way will be able to prevent from getting that info? or perhaps is this happening because I'm setup a a developing rather than production?

interesting answer.

For the reason that you are well on "developing" (exceptions are proven in browser)

  • Solution 1: Use Production Atmosphere )
  • Solution 2: Change configurations in application.ini
  • Solution 3: Make use of an try/catch block for database connect

It's a mixture of both. In development, your showing your errors. The primary reason your simply because.

However, you are able to catch the exception by testing the bond prior to the query. Permitting you to definitely handle your personal connection failures.

try {
} catch (Zend_Exception $e) {
    new Zend_Exception("A different error");