MySQL official website Download http://dev.mysql.com/downloads/mysql/
Note that installing MYSQL-5.5.17-OSX10.6-X86_64.DMG is easy to install
Set the system security permissions and click Install!!
1.mysql-5.5.17-osx10.6-x86_64.pkg
2.mysqlstartupitem.pkg
3.mysql.prefpane
Install in sequence
Terminal input command:/usr/local/mysql/bin/mysqladmin-u root password xxx (new password)
Terminal input command:/usr/local/mysql/bin/mysql-u root-p (Login database)
Exit Mysql:exit
Configuration path
Terminal input command: VI. Bash_profile (may be a new. bash_profile file OH)
Press A to enter edit mode
Input: Export PATH =/usr/local/mysql/bin/: $PATH
Press ESC to exit edit mode input (: WQ) Exit VI
Input command in terminal: Echo $PATH
Add Required path: path= "$PATH":/usr/local/mysql/bin
Enter the command again in the terminal: Echo $PATH
See ":/usr/local/mysql/bin" appears then succeeds
And then enter
Mysql-uroot-p
Enter the password!!!
There is also a graphics tool on your Mac that you can install after you've configured the above
http://dev.mysql.com/downloads/workbench/
Workbench after download, install it.
Install MySQL on Mac