由于目标机器主动拒绝,无法建立连接Laravel 5

No connection could be made because the target machine actively refused it Laravel 5

我在尝试连接到 cleardb 数据库时遇到问题,它给了我这个错误。

No connection could be made because the target machine actively refused it

我检查了我的连接信息,它是正确的,因为我在navicat中测试它并且它连接成功。 谁能帮帮我

我发现 laravel 没有获取新的连接信息,所以我重新启动了服务器,它正在工作。