Are you adding the "port" value in the db config array?  Here's my
congif setup, using MAMP as on my local machine:

var $default = array(
                'driver' => 'mysql',
                'persistent' => false,
                'host' => 'localhost',
                'port' => '8889',
                'login' => 'root',
                'password' => 'root',
                'database' => 'my_db',
                'prefix' => ''
        );



On Jul 21, 11:31 am, road runner <[EMAIL PROTECTED]> wrote:
> Hi, installing latest version of Cake on Mac OS 10.3.9
> Using MAMP but when I access the following page is returned properly
> but with message Can't connect see below.
>
> CakePHP Rapid Development
> Your database configuration file is present.
>
> Warning: mysql_connect() [function.mysql-connect]: Can't connect to
> local MySQL server through socket '8889' (2) in /Applications/MAMP/
> htdocs/cake/cake/libs/model/dbo/dbo_mysql.php on line 100
>
> Warning: mysql_select_db(): supplied argument is not a valid MySQL-
> Link resource in /Applications/MAMP/htdocs/cake/cake/libs/model/dbo/
> dbo_mysql.php on line 105
> Cake is not able to connect to the database.
>
> According to MAMP need to use port 8889 which I changed in the
> dbo_mysql.php file and again in the database.php file also changed
> sign in and password to what MAMP expects and created database cAlled
> cake. I used  phpmyadmin to create a database  cake without tables.
>
> If someone can point me in right direction would be appreciated.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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