Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
231 views
Welcome To Ask or Share your Answers For Others

1 Answer

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...