Hey,

What is your php.ini value for "mysql.default_socket" set to?
This will tell PHP where your socket file is for MySQL, and help get you 
connected.

You can check this file location by looking in your MySQL my.cnf file 
for the line indicating "socket = "

For example, a MAMP install has the following socket definition in my.cnf
        socket = /Applications/MAMP/tmp/mysql/mysql.sock

Hope this helps. Do let us know how you go

Cheers,
Graham


harrzack wrote:
> This is on OS X 10.4.11 with latest XAMPP install.
>
> Having probs getting cake bake to use the correct PHP. When I try to
> bake a contoller I'm getting the famous error message(s):
>
>  "Warning: mysql_connect(): Can't connect to local MySQL server
> through socket '/var/mysql/mysql.sock' (2) in /WebDev/site.IOI/IOI/
> cake/libs/model/datasources/dbo/dbo_mysql.php on line 375"
>
> I've searched the web, seen most answers - it is still broke. Have set
> my paths in .profile, edited php.ini to have the xampp path to php,
> and still cake seems to want to use the built-in PHP which uses the
> wrong socket. I've p**sed away several hours and nothing I do seems to
> fix this.
>
> I've cd'd to the app directory, cake is showing the correct path...
> there must be some other config file I need to edit to get cake to
> stop using the built-in CLI PHP.
>
> Any new clues to this PITA issue?
>
> >
>   


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