私はUbuntu 10.10にZendフレームワークをインストールしました。 zendツールを使用してプロジェクトを作成しました。Zendフレームワークの致命的なエラー
しかし、http://localhost/zftest/publicが表示された場合は、次のエラーが発生します。
Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message
'Configuration array must have a key for 'password' for login credentials'
in /usr/share/php/libzend-framework-php/Zend/Db/Adapter/Abstract.php:284 Stack trace:
#0 /usr/share/php/libzend-framework-php/Zend/Db/Adapter/Abstract.php(183): Zend_Db_Adapter_Abstract->_checkRequiredOptions(Array)
#1 /usr/share/php/libzend-framework-php/Zend/Db.php(265): Zend_Db_Adapter_Abstract->__construct(Array)
#2 /usr/share/php/libzend-framework-php/Zend/Application/Resource/Db.php(142): Zend_Db::factory('PDO_MYSQL', Array)
#3 /usr/share/php/libzend-framework-php/Zend/Application/Resource/Db.php(154): Zend_Application_Resource_Db->getDbAdapter()
#4 /usr/share/php/libzend-framework-php/Zend/Application/Bootstrap/BootstrapAbstract.php(680): Zend_Application_Resource_Db->init()
#5 /usr/share/php/libzend-framework-php/Zend/Application/Bootstrap/BootstrapAbstract.php(623): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource('db')
#6 /usr/share/php/libzend-framewor in /usr/share/php/libzend-framework-php/Zend/Db/Adapter/Abstract.php on line 284
誰でもこの問題を解決する方法を教えてください。
ありがとうございます。
はあなたが後にしている結果が得られたであろう。最初のヒットはhttp://www.zfforums.com/zend-framework-general-discussions-1/installation-configuration-3/zend_db_adapter_exception-2934.html – Phil
...です。パスワードのないMySQLユーザアカウントでは、空のパスワード値を試したいのでなければ、私はZFがそのようなことをサポートしているとは思わない – Phil