I use the command php artisan migrate to migrate my db in laravel 5 .. it gives me an error:
exception \'PDOException\' with message \'SQLSTATE[HY000] [10
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'),
'database' => 'laravel',
'username' => 'root',
'password' => 'PASSWORD IF HAVE OTHERWISE LEAVE IT BLANK ',
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
],
REMOVE THE ENV values from db,host and password and put them direct