无法建立连接,因为目标机器主动拒绝了它 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 没有获取新的连接信息,所以我重新启动服务器并且它正在工作。