0

I'm trying to do php artisan migrate and I got this error:

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

catch (Exception $e) {
664|             throw new QueryException(
665|                 $query, $this->prepareBindings($bindings), $e
666|             );
667|         }

I have in the phpinfo pdo_mysql and pdo_pgsql and I'm using MAMP on windows.

Are there any ideas why I still get this error?

4
  • yes and didn't work Commented Jan 15, 2020 at 8:47
  • Searching for your error turns up many duplicates, have you checked them? Commented Jan 15, 2020 at 10:36
  • Does this answer your question? Laravel: PDOException: could not find driver Commented Jan 15, 2020 at 10:37
  • to be specific, update you question with your related code, in this please add .env file or config/database.php Commented Jan 15, 2020 at 13:43

1 Answer 1

0

Am sorry for being late, please run this command sudo apt-get install php7.4-mysql Don't forget to change php7.4-mysql with corresponding version of yours installed php

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.