I have problems in connected with laravel to mysql database. I have change the localhost to localhost:8091 because this is the local server name in my wamp server. I have also installed xampp and uniserver which listens to other ports. Is it possible that laravel i confused with the other servers i have installed in my machine? Not only for the url but for the phpmyadmin too, for example.
this is the error
PDOException in Connector.php line 119: could not find driver
This is my .env file
APP_ENV=local APP_KEY=base64:h0GyUa1VdjV22LXpRiOSOw+9HxXV+Qm0XO2zz9RRz6s= APP_DEBUG=true APP_LOG_LEVEL=debug APP_URL=http://localhost:**8091** DB_CONNECTION=mysql DB_HOST=localhost DB_PORT=3306 DB_DATABASE=test1 DB_USERNAME=root DB_PASSWORD= This is my config.php file
'mysql' => array ( 'driver' => 'mysql', 'host' => 'localhost', 'port' => '3306', 'database' => 'test1', 'username' => 'root', 'password' => '', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', 'strict' => true, 'engine' => NULL, ), This is my database.php file
'mysql' => [ 'driver' => 'mysql', 'host' => env('DB_HOST', 'localhost'), 'port' => env('DB_PORT', '3306'), 'database' => env('DB_DATABASE', 'test1'), 'username' => env('DB_USERNAME', 'root'), 'password' => env('DB_PASSWORD', ''), 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', 'strict' => true, 'engine' => null, ], Solution on last comment of correct answer