Database connection “Mysql” is missing and mysql.sock is missing

前端 未结 7 1682
轻奢々
轻奢々 2021-01-12 13:46

I was trying to generate model code from cake command line tool. But got this issue.

Warning Error: PDO::__construct(): [2002] No such file or directory (try         


        
7条回答
  •  情书的邮戳
    2021-01-12 13:53

    In my case it was because I was calling the wrong version of PHP. I.e. I was using /usr/bin/php which when MAMP Pro's php is /Applications/MAMP/bin/php/php5.3.29/bin/php

提交回复
热议问题