When I run zend framework project from browser, everything is OK, it connects to DB.
When I run project from command line it can\'t connect to DB and it throws an error:
Copy the content of application.ini in your php.ini file, this should work fine.