it is likely that you are using the inbuilt php not the mamp version
that has connection to mysql working, try typing

which php

in the terminal (I bet it points to something like '/usr/bin/php'

you likely need to find the php executable in mamp folder and either
add that to your path in your profile
path is probably something like
/Applications/MAMP/bin/php5/bin/php

Sam D

-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/
http://blog.samdevore.com/cakephp-pages/my-cake-wont-bake/
http://blog.samdevore.com/cakephp-pages/i-cant-bake/


On Fri, Jun 20, 2008 at 3:17 PM, surf5502 <[EMAIL PROTECTED]> wrote:
>
> I just got CakePHP installed (after deciding to try this before RoR)
> and I trying to figure out how to use the code generator. I have a
> MacBook Pro running MAMP (http://www.mamp.info). The server is set up
> fine and when I browse to http://localhost/ everything comes up green
> and good to go (it connects to the database just fine). When I go to
> my shell and run 'cake bake' in my 'app' folder I get the warning
> 'Cannot connect to local MySQL server through socket...cake/libs/model/
> datasources/dbo/dbo_mysql.php on line 111' and then there's the
> obvious couple of resource errors after it on lines 116 and 144.
> Finally it claims my database has no tables but they are there and all
> named properly and I can browse them just fine in phpMyAdmin. Any help
> with why my bakery is so messed up?
>
> >
>

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

Reply via email to