Hi Road runner! This is parts of my database.php:
var $default = array('driver' => 'mysql', 'connect' => 'mysql_connect', 'host' => 'localhost', 'login' => 'root', 'password' => 'password', 'database' => 'cakephp2', 'prefix' => 'cake_'); Are u able to connect to mysql with regular php scripts? Gerhard On Jul 21, 5:31 pm, 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 cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---