To resolve the error in the title of this post:
1. Set the following in "/etc/php.ini"
pdo_mysql.default_socket=/tmp/mysql.sock
mysql.default_socket = /tmp/mysql.sock
mysqli.default_socket = /tmp/mysql.sock
2. Comment out the following line in "/protected/config/main.php" of your app:
'ipFilters'=>array('localhost','::1'),
3. Restart Apache:
sudo apachectl restart