After applying Security Update 2010-05, some users have reported PHP and MySQL problems, including an inability to connect to MySQL databases.
Apple Discussions poster TriangleJuice reports that the following procedure resolves the database connection issue:
- In the Terminal type sudo nano /etc/php.ini (Terminal will ask you for your password)
- Change: mysql.default_socket = to: mysql.default_socket = /tmp/mysql.sock
- Press Ctrl-O, then Enter to save
- Type sudo apachectl graceful