我已将laravel应用程序部署到heroku,但是当我尝试在heroku bash中运行php artisan migrate
时,出现以下错误:
SQLSTATE [HY000] [2002]连接被拒绝(SQL:从information_schema.tables中选择*,其中table_schema = 4GrEPZThTu并且table_name = migrations并且table_type ='BASE TABLE')
SQLSTATE [HY000] [2002]连接被拒绝
我正在使用remotemysql.com托管数据库。我检查了所有数据库配置,并且所有设置都正确。谁能帮我解决这个问题?