|
|||
|
Hi, can somebody help me with this problem? I am trying to connect to MySql DB like this :
PHP Code:
Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'SQLSTATE[HY000] [2005] Unknown MySQL server host ':/tmp/mysql50.sock' (3)' in my_path/lib/Zend/Db/Adapter/Pdo/Abstract.php:102 Stack trace: #0 my_path/lib/Zend/Db/Adapter/Abstract.php(143): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 some other stuff thrown in my_path/lib/Zend/Db/Adapter/Pdo/Abstract.php on line 102 connection using mysql_connect() works OK. Where should be problem? thanks for all answers. Last edited by SpotSec : 05-02-2007 at 05:57 AM. |
|
||||
|
You forgot to add host to your connection.
If you are connecting to a local database server then using localhost for host parameter is just fine.
__________________
Zend Framework Tutorials | Zend Framework Forums | Zend Framework IRC Channel | | Zend Framework Resources | CoreShifter | Microsoft Forums | Microsoft Links | Microsoft Books |
|
|||
|
I solved this problem, I've done it like this:
PHP Code:
Last edited by SpotSec : 05-02-2007 at 05:58 AM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|