How to configure MySQL under Zend Framework?
问题 I configured my Zend Framework virtualhost environment, but now my files cannot access the MySQL database. Getting an error: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost'. Where should I configure my MySQL so that it matches my virtualhost? 回答1: You need to make sure you are using Zend_Db and you have configured MySQL as you adapter in Zend DB Adapter Also, in your application.ini file under configs folder, you must write: [development : production] phpSettings.display