I am new to Laravel framework. I keep getting this error when trying to write php artisan serve in terminal. I am not able to do somethings .Below is the info I have in my .env file.
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', 'localhostphp artisan make:migration create_users_table
'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => false,
'engine' => null,
],
and my .env file
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=mamim
DB_USERNAME=mamim
DB_PASSWORD=password
I tried to clear cahce but I met always the same error; SQLSTATE[HY000] [1045] Access denied for user 'mamim'@'localhost' (using password: YES)