php artisan migrate throwing [PDO Exception] Could not find driver - Using Laravel
You can use
sudo apt-get install php7-mysql
or
sudo apt-get install php5-mysql
or
sudo apt-get install php-mysql
This worked for me.
Artisan migrate could not find driver
In your php.ini configuration file simply uncomment the extension:
;extension=php_pdo_mysql.dll
(You can find your php.ini file in the php folder where your stack server is installed.)
If you're on Windows make it: extension=php_pdo_mysql.dll
If you're on Linux make it: extension=pdo_mysql.so
And do a quick server restart.
If this isn't working for you, you may need to install pdo_mysql extension into your php library.
Laravel migration error - could not find driver - Illuminate\Database\QueryException
It was the c:\php7/php.ini
- needed to modify a line - uncomment this line:
extension=pdo_mysql
Answer found here: https://stackoverflow.com/a/25137901/16714187
php artisan migrate command error : could not find driver
first you need start your mysql server
then check your env configuration for your mysql, i think your password isn't root, but you put root in password.
some times password is empty. check it please.
Illuminate\Database\QueryException could not find driver Laravel
I finally found the solution
infact the php version used by apache was 7.3 and not 7.4 with :
<?php phpinfo() ?>
however when I did:
php --version
the version was indeed 7.4.
I followed this tutorial to change the version
https://tecadmin.net/switch-between-multiple-php-version-on-debian/?amp
and it works
Related Topics
Strange Behaviour with Numbers That Have a Leading Zero
How to Show a Where Clause Just for One Field in MySQL
Get Next and Previous Day with PHP
What Factors Make PHP Unicode-Incompatible
Any Way to Specify Optional Parameter Values in PHP
Codeigniter: Load Controller Within Controller
Getting Data with Utf-8 Charset from Mssql Server Using PHP Freetds Extension
Can Someone Explain the /E Regex Modifier
PHP Simplexml Check If a Child Exists
Redirect with PHP After Ajax Call
Loading View Outside View Folder with Codeigniter
Regex Matching Links Without <A> Tag
Display Possible Combinations of String
Authentication on Google: Oauth2 Keeps Returning 'Invalid_Grant'