标签: mysql laravel amazon-ec2
我安装了MySQL的EC2实例,我正在尝试将MySql连接到Laravel,但我一直收到错误SQLSTATE[HY000] [2002] Connection refused。
SQLSTATE[HY000] [2002] Connection refused
我做错了什么?
.env文件
.env
DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=LOGI DB_USERNAME=root DB_PASSWORD=MY_PASSWORD