当我写命令" php artisan migrate"从mysql连接,linux终端给出了这个错误:[PDOException] could not find driver
。
当我加入时 php.ini
extension=pdo.so
extension=pdo_mysql.so
, 错误已经改变如下:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/pdo_mysql.so' - /usr/lib/php5/20121212/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: Module 'PDO' already loaded in Unknown on line 0
[PDOException]
could not find driver
我们如何解决这个问题?
由于
答案 0 :(得分:4)
您好需要安装php pdo驱动程序 打开终端
$('#element_to_pop_up').bPopup({
nOpen:function(){
$("body").unbind('dblclick');
});
});
重启Apache服务器
sudo apt-get install php5-mysql