Zend Server CE on Mac OS X 10.6

Problem:

1. The mysqli error was: Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2).
2. Click the “Open phpMyAdmin”, it yields the following error: For security reasons, the link to the phpMyAdmin interface from Zend Server is locked for remote access and is only accessible from localhost.

Fix:

1.  sudo ln -s /usr/local/zend/mysql/tmp/mysql.sock /tmp/mysql.sock
2. Change http://localhost:10081/phpmyadmin/index.php -> http://127.0.0.1:10081/phpmyadmin/index.php