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
Obsessed with tech since the early arrival of A/UX on Apple, Sudz (SK) is responsible for the editorial direction of AppleToolBox. He is based out of Los Angeles, CA.
Sudz specializes in covering all things macOS, having reviewed dozens of OS X and macOS developments over the years.
In a former life, Sudz worked helping Fortune 100 companies with their technology and business transformation aspirations.