I am adapting the Socialite topic of JOJO Themes in a site and it is giving me an error when executing php artisan
in the terminal of my server.
I have already made the corresponding configuration to the database and the application in the .env file and it stayed like this:
DB_CONNECTION=mysql
DB_HOST=localhost // Esto lo agregué yo, porque no venía en el brindado
DB_PORT=3306
DB_DATABASE=basededatos
DB_USERNAME=usuario
DB_PASSWORD=contraseña
I checked the PHP information in a custom route in routes.php (which works perfectly):
Route::get( '/phpinfo', function () {
echo phpinfo()->pdo_mysql;
} );
And he returns me (the important part I think):
Apparently I have everything working ... but it keeps showing up:
[PDOException]
could not find driver
Well, ideas are accepted. Installing MySQL is not an option, because it is installed.