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
- Convert multidimensional array to single array in Laravel
- How to get last record from object collection in laravel
- Laravel specific table Migration
- Global scope in Laravel with example
- Add class to body in laravel view
- Trying to get property 'title' of non-object
- Split an Eloquent Collection by half in Laravel
- How to check relationship is loaded or not in Laravel
- Create project factory and seed data in laravel
- How to get CSRF token in laravel controller
- How to get selected categories on edit record with Select2
- How to pass link from controller to view in laravel on ajax call
- Undefined property: stdClass::$title
- How to access the nth object from Laravel collection object ?
- Store logged in user details in session and display in view in laravel
- Command to create MySQL Docker image and access the MySQL command-line interface (CLI) within a running Docker container
- How to pass variable from controller to model in Laravel
- JQuery each loop on json response after ajax in laravel
- Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails
- Get today records in Laravel
- How to create projects method with belongstomany relationship in user model
- Create records using relationship in laravel
- Ajax POST request in laravel
- How to print form data in laravel
- How to start websocket server in laravel