“找不到驱动程序”我有我的Linux系统上安装LAMPP,和我学习Symfony2中,试图创建与Symfony2的命令模式PDOException在PHP
php app/console doctrine:schema:create
我收到以下错误消息: -
PDOException “could not find driver”
我还要取消这一行extension=php_pdo_mysql.dll
在php.ini文件
我想看看谷歌和我的问题,但解决不了我的问题。当我运行php -m
命令我得到以下结果: -
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/mysql.so' - /usr/lib/php5/20090626+lfs/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/mysqli.so' - /usr/lib/php5/20090626+lfs/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/pdo_mysql.so' - /usr/lib/php5/20090626+lfs/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gettext
hash
iconv
json
libxml
mbstring
mhash
openssl
pcntl
pcre
PDO
----
----
有没有办法可以去除这个问题?
是的,这有帮助但我只是改变了这两件事情database_host =“127.0.0.1” database_port =“3306”它的工作 – ScoRpion 2012-02-17 06:13:10
谢谢非常多 – ScoRpion 2012-02-17 06:13:30
我还安装了mysql我的Ubuntu的matchine除了xampp – ScoRpion 2012-02-21 08:47:13