[英]Laravel SQLSTATE[HY000] [2002] Connection refused | Forge | AWS
My .env is 我的.env是
APP_NAME=Laravel
APP_ENV=production
APP_KEY=(copied from forge's .env)
APP_DEBUG=false
APP_URL=http://localhost`
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=forge
DB_USERNAME=forge
DB_PASSWORD=(copied from forge's .env)
Is that correct that I'm doing it from mac terminal just by php artisan migrate? 我是通过php artisan migration从mac终端执行此操作的吗? Or I have to do this operation after SSHing to server (if yes - how?).
或者,我必须在SSH到服务器后执行此操作(如果是,怎么办?)。
From the above error, it seems, one of the following value is incorrect in environment settings/ .env file: 从以上错误看来,以下值之一在环境设置/ .env文件中不正确:
Please note that Database host should point to the Private IP address of your AWS instance instead of localhost or public IP address. 请注意,数据库主机应指向您的AWS实例的私有IP地址,而不是本地主机或公共IP地址。
Also command needs to be run over SSH 另外命令需要通过SSH运行
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.