Php artisan migrate

July 14, 2021 . 1 MIN READ

You don’t have a user named ‘laravel’. You should change the DB_USERNAME to the one you’re actually using to access your DB. Mostly it’s root by default so the changes in .env should be

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=

 

https://stackoverflow.com/questions/43169240/php-artisan-migrate-sqlstatehy000-1045-access-denied-for-user-laravell

Leave a Reply

Your email address will not be published. Required fields are marked *