Tutorials

Setting up MySQL for PHP Development on a Mac

Step 8: Setting up MySQL for PHP Development on a Mac

Complete Configuration of the MySQL Socket

Picture_14

To create the link to the socket file that PHP needs, from the terminal execute this command: sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock

You may again be asked for your password and as long as no error is shown then everything is okay.

PHP should now be able to access databases server by your MySQL server.