您好,欢迎访问一九零五行业门户网

zend 框架下pdo的以下问题

warning: include_once(zend/db/adapter/pdo/mysql.php): failed to open stream: no such file or directory in /usr/share/php/zend/loader.php on line 134
warning: include_once(): failed opening 'zend/db/adapter/pdo/mysql.php' for inclusion (include_path='/var/www/kehuanedu/application/../library:/var/www/kehuanedu/library:.:/usr/share/pear:/usr/share/php') in /usr/share/php/zend/loader.php on line 134
warning: include_once(zend/db/adapter/pdo/mysql.php): failed to open stream: no such file or directory in /usr/share/php/zend/loader.php on line 134
warning: include_once(): failed opening 'zend/db/adapter/pdo/mysql.php' for inclusion (include_path='/var/www/kehuanedu/application/../library:/var/www/kehuanedu/library:.:/usr/share/pear:/usr/share/php') in /usr/share/php/zend/loader.php on line 134
fatal error: uncaught exception 'zend_exception' with message 'file zend/db/adapter/pdo/mysql.php does not exist or class zend_db_adapter_pdo_mysql was not found in the file' in /usr/share/php/zend/loader.php:87 stack trace: #0 /usr/share/php/zend/db.php(263): zend_loader::loadclass('zend_db_adapter...') #1 /usr/share/php/zend/application/resource/db.php(142): zend_db::factory('pdo_mysql', array) #2 /usr/share/php/zend/application/resource/db.php(160): zend_application_resource_db->getdbadapter() #3 /usr/share/php/zend/application/bootstrap/bootstrapabstract.php(695): zend_application_resource_db->init() #4 /usr/share/php/zend/application/bootstrap/bootstrapabstract.php(638): zend_application_bootstrap_bootstrapabstract->_executeresource('db') #5 /usr/share/php/zend/application/bootstrap/bootstrapabstract.php(598): zend_application_bootstrap_bootstrapabstract->_bootstrap(null) #6 /usr/share/php/zend/application.php(373): zend_application_bootstrap_bootstrapabstract->bootstrap(null) #7 /var/www/kehuanedu/public/index.p in /usr/share/php/zend/loader.php on line 87
以上是报错的信息。
我的配置信息:
[development : production]
phpsettings.display_startup_errors = 1
phpsettings.display_errors = 1
resources.frontcontroller.params.displayexceptions = 1
resources.db.adapter = pdo_mysql
resources.db.params.host = localhost
resources.db.params.username = root
resources.db.params.password = root
resources.db.params.dbname = kehuanedu_db
resources.db.params.charset = utf8
resources.db.isdefaulttableadapter = true
resources.db.params.driver_options.1002 = set names utf8;
根据一本《诗意的边缘》里面一步一步来弄的。
环境:
linux
php 5.6
mysql
请教一下,这个问题怎么解决。
其他在不需要数据库的情况下可以正常访问。
回复内容: warning: include_once(zend/db/adapter/pdo/mysql.php): failed to open stream: no such file or directory in /usr/share/php/zend/loader.php on line 134
warning: include_once(): failed opening 'zend/db/adapter/pdo/mysql.php' for inclusion (include_path='/var/www/kehuanedu/application/../library:/var/www/kehuanedu/library:.:/usr/share/pear:/usr/share/php') in /usr/share/php/zend/loader.php on line 134
warning: include_once(zend/db/adapter/pdo/mysql.php): failed to open stream: no such file or directory in /usr/share/php/zend/loader.php on line 134
warning: include_once(): failed opening 'zend/db/adapter/pdo/mysql.php' for inclusion (include_path='/var/www/kehuanedu/application/../library:/var/www/kehuanedu/library:.:/usr/share/pear:/usr/share/php') in /usr/share/php/zend/loader.php on line 134
fatal error: uncaught exception 'zend_exception' with message 'file zend/db/adapter/pdo/mysql.php does not exist or class zend_db_adapter_pdo_mysql was not found in the file' in /usr/share/php/zend/loader.php:87 stack trace: #0 /usr/share/php/zend/db.php(263): zend_loader::loadclass('zend_db_adapter...') #1 /usr/share/php/zend/application/resource/db.php(142): zend_db::factory('pdo_mysql', array) #2 /usr/share/php/zend/application/resource/db.php(160): zend_application_resource_db->getdbadapter() #3 /usr/share/php/zend/application/bootstrap/bootstrapabstract.php(695): zend_application_resource_db->init() #4 /usr/share/php/zend/application/bootstrap/bootstrapabstract.php(638): zend_application_bootstrap_bootstrapabstract->_executeresource('db') #5 /usr/share/php/zend/application/bootstrap/bootstrapabstract.php(598): zend_application_bootstrap_bootstrapabstract->_bootstrap(null) #6 /usr/share/php/zend/application.php(373): zend_application_bootstrap_bootstrapabstract->bootstrap(null) #7 /var/www/kehuanedu/public/index.p in /usr/share/php/zend/loader.php on line 87
以上是报错的信息。
我的配置信息:
[development : production]
phpsettings.display_startup_errors = 1
phpsettings.display_errors = 1
resources.frontcontroller.params.displayexceptions = 1
resources.db.adapter = pdo_mysql
resources.db.params.host = localhost
resources.db.params.username = root
resources.db.params.password = root
resources.db.params.dbname = kehuanedu_db
resources.db.params.charset = utf8
resources.db.isdefaulttableadapter = true
resources.db.params.driver_options.1002 = set names utf8;
根据一本《诗意的边缘》里面一步一步来弄的。
环境:
linux
php 5.6
mysql
请教一下,这个问题怎么解决。
其他在不需要数据库的情况下可以正常访问。
其它类似信息

推荐信息