xxxxxxxxxx
In Ubuntu (18.04)
apt install php-mysql
Happy coding #uzi :)
xxxxxxxxxx
try this command sudo apt install php-mysql
if works enjoy but if it doesn't then I surgest you check your
php version, the php version you are using might not be corresponding
with the laravel version being used.
To switch to the right php version that suit the version of laravel
you are using,
use this command sudo update-alternatives --config php
xxxxxxxxxx
1. You might need to comment out the following in your php.ini file.
;extension=pdo_mysql
2. run: composer upgrade
and restart laravel project
xxxxxxxxxx
just remove ;
extension=php_pdo_mysql.dll
php_pdo_mysql
xxxxxxxxxx
If using mysql, uncomment extension for pdo_mysql in php.ini
To find php.ini path,
php --ini
;extension=pdo_mysql
TO
extension=pdo_mysql
xxxxxxxxxx
sudo apt-get install php5.6-mysql/php7.2-mysql
sudo apt-cache serch drivername