我正在使用Lampp apache服务器,当我运行命令php artisan migrate
时收到此错误消息:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_pdo_mysql.dll' - /usr/lib/php/20151012/php_pdo_mysql.dll: cannot open shared object file: No such file or directory in Unknown on line 0
[Illuminate\Database\QueryException] could not find driver (SQL: select * from information_schema.tables where table_schema = seo-cms and table_name = migrations)
[PDOException] could not find driver
我从php.ini
和/opt/lamp/etc/php.ini
启用了/etc/php/7.0/cli/php.ini
的pdo扩展程序,我重新启动了服务器,但这还不够。我很可能错过了一些东西。你能帮帮我吗?
THX!
答案 0 :(得分:0)
我执行了这个:sudo apt-get install php-mysql
并解决了我的问题。但我建议您放弃lampp
并使用apache service2
。在lampp