Install and use MySQL on Mac
Install
1. to MySQL official website to download MySQL Community version, (the author download is mysql-5.6.21) MySQL is divided into commercial version (Enterprise) and Community version (Community), commercial version is to charge, Community version is free.
The Mac installation package of MySQL is divided into two types: DMG Archive and Compressed Tar. The installation of DMG is relatively simple. You only need to double-click the installation file. For more information about the installation of Compressed Tar, see.
2. The installation path of mysql is:
At the same time, MySQL will create a soft link (symbolic link) pointing to this folder in/usr/local/mysql ), <Strong? Http: www.bkjia.com kf ware vc "target =" _ blank "class =" keylink "> VcD4KPHA + pgltzybzcm9 "http://www.2cto.com/uploadfile/Collfiles/20141013/201410130916285.jpg" align = "middle" alt = "\">
Start MySQL:
/Library/StartupItems/MySQLCOM start
Restart:
/Library/StartupItems/MySQLCOM restart
Close:
/Library/StartupItems/MySQLCOM stop
Use MySQL1. create a password for root 2. Enter MySQL
3. Then you can run the MySQL Command. Remember that each command should end with. For example,
P.S. MySQL Common commands