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.
More Related Contents:
- PDOException SQLSTATE[HY000] [2002] No such file or directory
- How to bind parameters to a raw DB query in Laravel that’s used on a model?
- Laravel 5.4 on PHP 7.0: PDO Exception – Could not find driver (MySQL)
- PHP Laravel: No connection could be made because the target machine actively refused it
- PHP PDO: charset, set names?
- How to get numeric types from MySQL using PDO?
- How can I use PDO to fetch a results array in PHP?
- PHP PDOException: “SQLSTATE[HY093]: Invalid parameter number”
- Use bound parameter multiple times
- MySQL check if a table exists without throwing an exception
- how safe are PDO prepared statements
- How to join three table by laravel eloquent model
- How to solve General error: 2006 MySQL server has gone away
- Replacing mysql_* functions with PDO and prepared statements
- PDO + MySQL and broken UTF-8 encoding
- PDOstatement (MySQL): inserting value 0 into a bit(1) field results in 1 written in table
- php code to test pdo is available?
- PDO fetchAll group key-value pairs into assoc array
- How to insert an array into a single MySQL Prepared statement w/ PHP and PDO
- Laravel 5.4 field doesn’t have a default value
- Laravel $q->where() between dates
- Setting a connect timeout with PDO
- PDO MySQL: Insert multiple rows in one query
- Binding parameters for WHERE IN clause with PDO [duplicate]
- Laravel nested relationships
- getting the value of an extra pivot table column laravel
- Laravel Cannot delete or update a parent row: a foreign key constraint fails
- SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known
- Laravel SQLSTATE[HY000] [2002] Connection refused
- Create a Insert… Select statement in Laravel