Instructions for installing on Mac OS X
- Download MySQL Community Server of MySQL Community Edition, version 5.6 or later, and follow the installation instructions including the postinstallation setup and testing.
- MySQL gets installed to /usr/local/mysql-VERSION and also installs a symbolic link, /usr/local/mysql, that points to the new location. By default, MySQL is set up with only a root account with no password.
- Ensure the MySQL bin folder has been added to your PATH environment variable:
- In TextEdit, navigate to your home folder (~ or /Users/<yourname>).
- From the File menu, choose Open.
- Press Cmd + Shift + . so that hidden files are shown, and select the .profile file.
Add the following line:
export PATH=$PATH:/usr/local/mysql/bin
- You can also edit the .bash_profile file as done above using VI and add a line that appends /usr/local/mysql/bin to the PATH environment variable.
- If you have a Terminal window open, be sure to close it and open a new one so that the PATH change takes effect.
Go into the mysql command line program as the root user by executing the following command in a Terminal window:
mysql -u root mysql
- Download the attached