×

Sign in with twitter.

You can follow the user and hashtags.

Share your tips on social media.

Post relative tips.

If you have relative tips, click [Add relative tips] to post.

MAMPでCakePHPのbake時に Warning Error: PDO::__construct() と出るときの対処法

@kzf3@kzf3 5046 viewer 27 embed viewer embed
MAMPでbakeして次のようなメッセージが出る場合
Warning Error: PDO::__construct(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock)

sudo mkdir /var/mysql
sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /var/mysql/mysql.sock

としてあげると良い

http://1bit.mobi/20110421215110.html
#cakephp

Click this to change format.

Add relative tips

Users who share this tip.

Comments