0
0

More than 1 year has passed since last update.

php artisan migrate実行時のエラー

Last updated at Posted at 2022-10-18

php artisan migrate

Illuminate\Database\QueryException

could not find driver (SQL: select * from information_schema.tables where table_schema = ****** and table_name = migrations and table_type = 'BASE TABLE')

試すこと:

php artisan cache:clear

php artisan config:clear

php -m
(pdo_mysqlが入ってるかどうかを確認する)

参考記事:
(Laravel)マイグレーション時、could not find driver のエラー
https://hara-chan.com/it/infrastructure/docker-laravel-migration-could-not-find-driver/#could_not_find_driver

最後解決
https://qiita.com/kaicho15to18/items/649d2865ca9098e498eb

関係ファイル
.env
config/database.php
/etc/php.ini

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0