Error 2002 - The server is not responding‘ error. Turns out the the location of mysql.sock has changed in this version of OS X; if you had all this working before upgrading then the OS was smart enough to detect it and create a sym link to the new location. However new installs, not so much.Worked for me:
Open a terminal, type in
If a php.ini does not exist copy over the default php.ini,
Now edit the php.ini
Don’t forget to save the file ([Ctrl]+[o] [Enter] in nano)Now restart Apache