Having just done this in the past 72 hours I can give one bit of advice.

use 
'port'                  =>      '/var/mysql/mysql.sock',
in your db config, where the path points to the mysql socket you wish to
use.
I pointed it at the default mysql install instead of the MAMP one for
example. ( Which I had to symlink myself due to Leapord path issues with the
MYSQL package.




jsnewbie wrote:
> 
> 
> Searched around and found many variations on this exact thread but
> none have moved me forward at all. So I'm appealing for help as a last
> gasp - hope the reiteration isn't too annoying.
> Trying to install cakephp on MAMP. MAMP works. osx 10.5.4
> 
> var $default = array(
>               'driver' => 'mysql',
>               'persistent' => false,
>               'host' => ':/Applications/MAMP/tmp/mysql/mysql.sock',
>               'login' => 'root',
>               'password' => 'root',
>               'database' => 'cake',
>               'prefix' => '',
>       );
> 
> gives 3 errors the first
> 
> Warning (2): mysql_connect() [function.mysql-connect]: Can't connect
> to local MySQL server through socket '/Applications/MAMP/tmp/mysql/
> mysql.sock:3306' (2) [CORE/cake/libs/model/datasources/dbo/
> dbo_mysql.php, line 117]
> 
> adding
> 'port' => '8889',
> 
> changes the sock: to 8889 in the error.
> 
> switching to
> 'host' => '127.0.0.1',
> 'port' => '8889',
> 
> gives
> 
> Warning (2): mysql_connect() [function.mysql-connect]: Lost connection
> to MySQL server at 'reading initial communication packet', system
> error: 61 [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line
> 117]
> 
> tried
> 
> sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /var/mysql/
> mysql.sock
> 
> ln: /var/mysql/mysql.sock: File exists
> 
> > 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/MAMP-installation-tp19455600p19514231.html
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
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