Jump to content

Zend Framework DB Connection


Recommended Posts



I updated my verison of Zend framework to 1.10 today.  All i did was copy the main library over and replace the old Zend folder.  My existing appplications work well.  I am trying to build a mysql db app and i'm having trouble connecting to the DB with zend.  It was my understanding that all i need to do is add the configuration lines to the application.ini file...  However, i keep getting the error:


Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'Configuration array must have a key for 'dbname' that names the database instance'


I can't seem to get this connected...  the params in my application.ini are as follows:


resources.db.adapter = "PDO_MYSQL"
resources.db.host = "localhost"
resources.db.dbname = "test"
resources.db.username = "root"
resources.db.password = ""
resources.db.isDefaultTableAdapter = true

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.