Installation
1. To download MySQL Community version of MySQL website, (the author downloads mysql-5.6.21) MySQL is divided into commercial version (Enterprise) and Community Edition (Community), the business Edition is charged, the Community edition is free.
The MySQL version of the MAC installation package is divided into two types, the DMG Archive and the other compressed Tar. DMG installation is relatively simple, only need to double-click the installation file, compressed tar installation Please find the information yourself.
The installation path for 2.mysql is:
At the same time, MySQL creates a soft link to the folder in/usr/local/mysql (Symbolic link),
Start MySQLStart:
/library/startupitems/mysqlcom/mysqlcom start
Restart:
/library/startupitems/mysqlcom/mysqlcom restart
Shut down:
/library/startupitems/mysqlcom/mysqlcom stop
Using MySQL1. Create a password for root 2. Go to MySQL
3. You can then execute the MySQL command, and remember that each command is to be terminated.For example
P.S.MySQL Common commands
Install and use MySQL under Mac