PDO connection error when using symfony and MAMP

前端 未结 4 2093
耶瑟儿~
耶瑟儿~ 2021-02-14 05:18

Getting an PDO error when trying to do php symfony doctrine:insert-sql
The error I get:

Warning: PDO::__construct(): [2002] Connection refused         


        
4条回答
  •  隐瞒了意图╮
    2021-02-14 05:59

    Looks right. Here would be the exact equivalent from a working databases.yml I'm using, in case it's of any use:

    dsn: 'mysql:host=localhost;dbname=jobeet'
    

提交回复
热议问题