Category: FAQ

OSXTigerInstallation


[edit] Troubleshooting with Mac OS X 10.4.4 and PHP

If you are having trouble with PHP and MySQL. You have to chagne the socket options.

E.G with TYPO3


if you get something starting with the following:

 Warning: mysql_pconnect(): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock'

You have create the missing directory:

sudo mkdir /var/mysql

and create a softlink like this:

sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock

Original Solution can be found in the Mambo-forum:

/etc/php.ini(.default) looks for mysql.sock in the wrong place... two options are to make a symbolic link from the right place to the socket... Or you can update your php.ini (.default) by finding "mysql.default_socket" and setting it to equal /private/tmp/mysql.sock and then restart apache with "apachectl graceful"

Return to InstallationFAQ

Retrieved from "http://forge.mysql.com/wiki/OSXTigerInstallation"

This page has been accessed 2,747 times. This page was last modified 01:10, 9 May 2006.

Find

Browse
MySQLForge
Main Page
Current events
Recent changes
Random page
Help
Edit
Edit this page
Editing help
This page
Discuss this page
Post a comment
Printable version
Context
Page history
What links here
Related changes
My pages
Special pages
New pages
File list
Statistics
Bug reports
More...