Reputation: 49
I have a problem when I want to register in laravel. After completing the registration form I see this error message:
QueryException in Connection.php line 770: SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES) (SQL: select count(*) as aggregate from
users
where
thank you for helping me.
Upvotes: 2
Views: 2257
Reputation: 2025
Create DB and add information in /.env file
DB_HOST=localhost
DB_DATABASE=YOUR_DB_NAME
DB_USERNAME=YOUR_DB_USER_NAME
DB_PASSWORD=YOUR_DB_USER_PASSWORD
Upvotes: 1