On OS X, the command line version of php reads from a completely different php.ini file compared to the mod_php install.
You need to create /etc/php.ini and then set: mysql.default_socket = / tmp/mysql.sock. php-cli reads from /etc/php.ini. I hope this helps. On Mar 14, 7:38 pm, "peterhf" <[EMAIL PROTECTED]> wrote: > Working through my first tutorial for using Cake PHP and got this > error message: > > Warning: mysql_connect() [function.mysql-connect]: Can't connect to > localMySQLserver throughsocket'/var/mysql/mysql.sock' (2) in / > Library/WebServer/Documents/cake/cake/libs/model/dbo/dbo_mysql.php on > line 102. Line 102 makes no mention of themysql.sock file. > > Themysql.sock file is in the "/tmp" directory on my machine, which > file do I edit to point Cake to the correct directory? > > Thanks in advance for any help. > > Peter - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
