用mariadb替换
mysql后,遇到以下错误:
PHP Fatal error: Uncaught exception ‘PDOException’ with message
‘could not find driver’ in /var/www/inlcude/config.PHP:5\nStack
trace:\n#0 /var/www/inlcude/config.PHP(5):
PDO->__construct(‘MysqL:dbname=my…’,‘apache’,‘ABCDE…’)\n#1
/var/www/html/index(21): require(‘/var/www/inlcude/con…’)\n#2
{main}\n thrown in /var/www/inlcude/config.PHP on line 5
我已经阅读了以下两个相关的问题,但是找不到答案:
PDO and MariaDB
PDOException “could not find driver”
yum list pdo_MysqL,yum list PHP5-MysqL,yum list PHP5-mariadb全部返回没有匹配的包.在Fedora 20(红帽)上使用mariadb的PDO驱动程序的名称是什么?