Threesuns

Email

Contact

All Semesters

Semesters

All Courses

Courses

PHP Programming (Blended)

CSYS2463

3 credits

Setting up MySQL for PHP Development on a Mac

How To
Picture 14

Complete Configuration of the MySQL Socket

Step 8

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.