Symfony 2 SQLSTATE[HY000] [2002] Connection refused Error

前端 未结 12 2399
耶瑟儿~
耶瑟儿~ 2020-12-15 07:31

I get an error like database operations using Symfony2.

SQLSTATE[HY000] [2002] Connection refused

parameters.yml

parameters         


        
12条回答
  •  没有蜡笔的小新
    2020-12-15 07:51

    On Mac OSX using Mamp Pro, what solved the problem for me was going to the MySQL tab on the UI and checking the option Allow network access to MySQL

    Don't forget to click Save to update the settings

提交回复
热议问题