[PDOException]
SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (usin
g password: YES)
If above error comes when you run D:\wamp\www\laravel\BATransfer>php artisan migrate
command, That means you have not configured .env file at root directory. There you need to set
DB_HOST=localhost
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=
and save it. Then run the above command in CLI. Tables will be created.
SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (usin
g password: YES)
If above error comes when you run D:\wamp\www\laravel\BATransfer>php artisan migrate
command, That means you have not configured .env file at root directory. There you need to set
DB_HOST=localhost
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=
and save it. Then run the above command in CLI. Tables will be created.
No comments:
Post a Comment