更新服务器后,在运行命令时出现此错误:
block 引用>php artisan migrate:install
错误
Illuminate\Database\QueryException] could not find driver (SQL: select * from information_schema.tables where table_schema = test and table_name = migrations) [PDOException] could not find driver
陷入这个......
搜索了很多,但没有得到解决方案。
请任何人帮忙解决这个问题
最佳答案
请按照以下步骤操作:
- 打开“php.ini”(找到您安装 php 的位置“C:/php7”)
- 找到行
extension=php_pdo_mysql.dll
(如果您使用记事本,请使用Ctrl+F) - 取消注释删除
#
符号的行
提示:
您可以使用此命令 php -i | 查找位置
php.ini
文件查找/i“配置文件”
关于php - 我更新了 wamp 服务器,laravel 项目出现错误([PDOException] 找不到驱动程序)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46938924/