• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

zend 框架下pdo的以下问题

php 搞代码 3年前 (2022-01-25) 40次浏览 已收录 0个评论
文章目录[隐藏]

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 (includ本文来源gaodai#ma#com搞*!代#%^码$网!搞代gaodaima码e_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
请教一下,这个问题怎么解决。
其他在不需要数据库的情况下可以正常访问。


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:zend 框架下pdo的以下问题

喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址