As an alternative solution be sure you have installed php7-mysql
try to run command below
sudo apt install php7.0-mysql
or, if you want to automatically install the current version
sudo apt install php-mysql
More Related Contents:
- PDOException SQLSTATE[HY000] [2002] No such file or directory
- Laravel 5 PDOException Could Not Find Driver
- Laravel 5.2 – Use a String as a Custom Primary Key for Eloquent Table becomes 0
- How to bind parameters to a raw DB query in Laravel that’s used on a model?
- How Can I Set the Default Value of a Timestamp Column to the Current Timestamp with Laravel Migrations?
- php artisan migrate throwing [PDO Exception] Could not find driver – Using Laravel
- SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known
- PHP Laravel: No connection could be made because the target machine actively refused it
- Eloquent groupBy make “SQLSTATE[42000]” with valid SQL query in Laravel 5.3
- find in set in laravel ? example
- How to apply bindValue method in LIMIT clause?
- PDO get the last ID inserted
- How do I use password hashing with PDO to make my code more secure? [closed]
- Laravel-5 ‘LIKE’ equivalent (Eloquent)
- PDO multiple queries
- Update query with PDO and MySQL
- Is “SET CHARACTER SET utf8” necessary?
- Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255
- Set PDO to throw exceptions by default [duplicate]
- PDO: MySQL server has gone away
- How do detect that transaction has already been started?
- return one value from database with mysql php pdo
- Trying to access array offset on value of type bool
- return multiple response data in one response
- How to get a query error from prepare() in PDO PHP?
- My Laravel 5.2.10 Sessions wont persist
- PHP PDO how to run a multiple query request?
- Mysql InnoDB engine in Laravel
- PDO and MySQL ‘between’
- Unit Test Laravel’s FormRequest