Use the bundled php bin from MAMP in your call to bake i.e. /
Applications/MAMP/bin/php/php5/bin/php

cheers.


On Feb 3, 6:20 pm, B_Fraser <baf...@gmail.com> wrote:
> I've spent a few hours on this so far and haven't had any luck. I've
> read all the previous posts but still no joy.
>
> When I attempt to bake I get:
>
> Warning: mysql_connect(): Can't connect to local MySQL server through
> socket '/var/mysql/mysql.sock' (2) in /Applications/MAMP/htdocs/cake/
> acl_tutorial/cake/libs/model/datasources/dbo/dbo_mysql.php on line 454
> etc...
>
> The site connects properly to the database in a browser but has
> trouble in the command line.
>
> Following a previous post I checked and it does appear that my console
> it using my systems built in php. When I type 'what php' I see it
> point to: /usr/bin/php
>
> I've tried the method of typing '/Applications/MAMP/tmp/mysql/
> mysql.sock /tmp/mysql.sock' into the command line and have not had any
> success.
>
> Any help would be greatly appreciated!

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to