You need to install php-mysql driver.
迁移时无法找到驱动程序
I wanna make a migration by php artisan migrate but I get an error:
In Connection.php line 664:
could not find driver (SQL: select * from information_schema.tables where table_schema = laravel and table_name = migrations)
In Connector.php line 67:
could not find driver
My env file settings:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=
- 点赞
- 写回答
- 关注问题
- 收藏
- 复制链接分享
- 邀请回答
1条回答
为你推荐
- 迁移时无法找到驱动程序
- migration
- php
- laravel
- mysql
- 1个回答
- laravel无法找到驱动程序(完成迁移后)
- php
- laravel
- 1个回答