缺少/Zend/Db/Adapter/Pdo/Mysql.php [英] Missing /Zend/Db/Adapter/Pdo/Mysql.php
问题描述
经过长时间的挣扎,我终于让 ZendFramework 运行起来.现在我试图让它与我的数据库一起工作,但我的错误文件告诉我以下内容:
PHP 警告:include_once(Zend/Db/Adapter/Pdo/Mysql.php):无法打开流:无此文件或目录 .....
当我运行 # ls/usr/share/php/Zend/Db/Adapter/Pdo
时,我得到的唯一响应是:
Abstract.php Sqlite.php
<代码># rpm -qa |grep php 正在返回:
php-ZendFramework-1.12.3-1.el6.remi.noarchphp-xml-5.5.0-0.28.beta4.el6.remi.x86_64php-bcmath-5.5.0-0.28.beta4.el6.remi.x86_64php-pecl-sqlite-2.0.0-0.3.svn313074.el6.remi.5.x86_64php-common-5.5.0-0.28.beta4.el6.remi.x86_64php-process-5.5.0-0.28.beta4.el6.remi.x86_64php-mysqlnd-5.5.0-0.28.beta4.el6.remi.x86_64php-cli-5.5.0-0.28.beta4.el6.remi.x86_64php-pear-1.9.4-17.el6.remi.noarchphp-5.5.0-0.28.beta4.el6.remi.x86_64php-ZendFramework-Db-Adapter-Mysqli-1.12.3-1.el6.remi.noarchphp-ZendFramework-Db-Adapter-Pdo-1.12.3-1.el6.remi.noarchphp-pdo-5.5.0-0.28.beta4.el6.remi.x86_64php-gd-5.5.0-0.28.beta4.el6.remi.x86_64
看着它,我认为你需要包 php-ZendFramework-Db-Adapter-Pdo-Mysql
而不是 Mysqli.>
我真的不明白将 Zend DB 适配器拆分成这样的单独包的目的.这并不是说您节省了大量磁盘空间.不过,安装它应该可以解决您的问题.
So after some long struggling I finaly have the ZendFramework running. Now I'm trying to get it working with my database, but my error file is telling me the following:
PHP Warning: include_once(Zend/Db/Adapter/Pdo/Mysql.php): failed to open stream:
No such file or directory .....
When I run # ls /usr/share/php/Zend/Db/Adapter/Pdo
the only response I'm getting is:
Abstract.php Sqlite.php
# rpm -qa | grep php
is returning this:
php-ZendFramework-1.12.3-1.el6.remi.noarch
php-xml-5.5.0-0.28.beta4.el6.remi.x86_64
php-bcmath-5.5.0-0.28.beta4.el6.remi.x86_64
php-pecl-sqlite-2.0.0-0.3.svn313074.el6.remi.5.x86_64
php-common-5.5.0-0.28.beta4.el6.remi.x86_64
php-process-5.5.0-0.28.beta4.el6.remi.x86_64
php-mysqlnd-5.5.0-0.28.beta4.el6.remi.x86_64
php-cli-5.5.0-0.28.beta4.el6.remi.x86_64
php-pear-1.9.4-17.el6.remi.noarch
php-5.5.0-0.28.beta4.el6.remi.x86_64
php-ZendFramework-Db-Adapter-Mysqli-1.12.3-1.el6.remi.noarch
php-ZendFramework-Db-Adapter-Pdo-1.12.3-1.el6.remi.noarch
php-pdo-5.5.0-0.28.beta4.el6.remi.x86_64
php-gd-5.5.0-0.28.beta4.el6.remi.x86_64
Looking at it I think you need the package php-ZendFramework-Db-Adapter-Pdo-Mysql
rather than Mysqli.
I don't really understand the purpose of splitting the Zend DB adapters into separate packages like that. It's not like you get a big disk space saving. Installing this should fix your problem though.
这篇关于缺少/Zend/Db/Adapter/Pdo/Mysql.php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!