Illuminate\Database\QueryException could not find driver
IlluminateDatabaseQueryException could not find driver
In this article, we will see how to solve "IlluminateDatabaseQueryException could not find driver".
You have to enable the pdo_mysql extension in php.ini file to avoid the error Illuminate\Database\QueryException could not find driver in Laravel-
Enable pdo_mysql using php.ini file
--PATH E:\laragon\bin\php\php-8.0.16-Win32-vs16-x64\php.iniextension=pdo_mysql
Just remove the ; from the ;extension=pdo_mysql in the php.ini file to avoid the exception in Laravel.
File path may be different.
If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.
Don't forget to share this article! Help us spread the word by clicking the share button below.
We appreciate your support and are committed to providing you valuable and informative content.
We are thankful for your never ending support.
Random Code Snippet Queries: Laravel
- How to check query string exists or not in laravel blade
- Conditional where clause in Laravel
- Laravel create table migration with model
- SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'user_id'
- How to show data by ID in laravel?
- Laravel change date format
- SQLSTATE[23000]: Integrity constraint violation: 1022 Can't write; duplicate key in table
- Laravel csrf token mismatch for ajax POST Request
- Get products with number of orders in Laravel
- How to get path from current URL in Laravel
- How to get last record from object collection in laravel
- Get the products list ordered by a user
- After image selected get validation error in laravel
- Laravel API response format
- Get the post details if it has at least one comment in comments table
- How to get route name on visit URL in laravel
- Order by multiple columns in Laravel
- Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0"
- How to pass external link in laravel blade to anchor tag
- How to validate website url in laravel using validaiton
- How to access the nth object from Laravel collection object ?
- How to run a specific seeder class in laravel
- The POST method is not supported for this route. Supported methods: PUT.
- OrderBy on Eloquent relationships method in Laravel
- If condition in Laravel 9