Selasa, 11 April 2017

PHP/MySQL Broken After Security Update 2010-05; Fix

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:



  1. In the Terminal type sudo nano /etc/php.ini (Terminal will ask you for your password)

  2. Change: mysql.default_socket = to: mysql.default_socket = /tmp/mysql.sock

  3. Press Ctrl-O, then Enter to save

  4. Type sudo apachectl graceful