Saturday, February 16, 2013

Re: baking cakephp on MAC OS

On Fri, Feb 15, 2013 at 10:39 PM, Roldan Aquino <raaquino@gmail.com> wrote:
> This maybe an old topic but I also got into the same issue with CakePHP 2.xx
> in MacOS X..The solution for me was
> simple. I just changed the host value in database.php from localhost to
> 127.0.0.1 and I am able to bake again.. :)

What I do is create 2 entries in the user table:

GRANT ALL PRIVILEGES ON db_whatever.* TO username@localhost IDENTIFIED
BY 'password';
GRANT ALL PRIVILEGES ON db_whatever.* TO username@127.0.0.1 IDENTIFIED
BY 'password';

This way, I can force a TCP/IP connection (rather than a UNIX socket)
if I need to. (Or some application does.)

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: