etc/my.cnf file dosen’t exist on Mac OS

Are you getting the following error while trying to connect to the MySql server admin.

Image

Installing the MySQL on the Mac OS X is just pretty easy to do but OS X dosen’t create the my.cnf in the /etc directory. But what it does to created some supportive files at /usr/local/mysql/support-files directory. In order to fix this, just copy the my-huge.cnf into the /etc directory.

open the terminal and browse to the following location

cd /usr/local/mysql/support-files

then, run the following command

sudo cp my-huge.cnf /etc/my.cnf

This should created a my.cnf file at /etc directory.

Image

Advertisements