Install and use MySQL on Mac

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.