Error Message when running PHP artisan migrate after installation
Command: php artisan migrate
[PDOException]
SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES)
If you are not using Lavarel homestead, you have to change the setting in .env file in the project directory.
Orginal
DB_HOST=localhost
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
Example for XAMPP/WAMP
DB_HOST=localhost
DB_DATABASE=myDB
DB_USERNAME=root
DB_PASSWORD=
* I create a database call myDB (using root with no password)
沒有留言:
張貼留言