无法 php artisan 迁移

Can't php artisan migrate

我遇到了问题,你知道如何解决吗?我正在使用网络托管服务器并尝试这样做 php artisan 迁移

异常跟踪:

1 PDOException::("SQLSTATE[HY000] [1045] Access denied for user 'u739920537_root'@'*********' (using password: YES)")

/Users/edvinasvalentinovicius/Desktop/testas/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70

2 PDO::__construct("mysql:host=******;port=3306;dbname=u739920537_laravel", "u739920537_root", "*******", [])

/Users/edvinasvalentinovicius/Desktop/testas/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70

打开你的 .env file and set the correct database configuration(Link):

DB_CONNECTION=mysql 
DB_HOST=127.0.0.1 
DB_PORT=3306 
DB_DATABASE=            // Your Database Name 
DB_USERNAME=           // Yout Database Username
DB_PASSWORD=          // Your Database Password 

任何时候更改 .env 文件都需要清除缓存:php artisan config:cache