Laravel 5 PDOException: Could Not Find Driver
When attempting to execute "php artisan migrate" within Laravel 5, you may encounter the error "could not find driver." Additionally, database connection issues can arise with the error "PDOException in Connector.php line 55: could not find driver."
Solution:
This issue typically arises due to a missing PHP MySQL driver. To resolve it:
sudo apt-get install php7.0-mysql
extension=php_mysql.so
Once these steps are complete, the MySQL driver should be available, and your application should be able to connect to the database successfully.
The above is the detailed content of Laravel 5 Migration Error: Why Can\'t I Find the MySQL Driver?. For more information, please follow other related articles on the PHP Chinese website!