You need to set the port in the database.php config file like so:

        var $default = array(
                'driver' => 'mysql',
                'persistent' => false,
                'host' => 'localhost',
                'port' => '8889',
                'login' => 'username',
                'password' => 'password',
                'database' => 'dbname',
                'encoding' => 'UTF-8',
                'prefix' => '',
        );



On Jun 20, 2008, at 6:17 PM, surf5502 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