Install mysql on mac and macmysql

Source: Internet
Author: User

Install mysql on mac and macmysql

 

Method 1: If you have installed homebrew, you can directly install it through homebrew. There are tutorials online.

Method 2:

Method 2: Download the mysql Installation File dmg on the official website and double-click it,


1: Click the first pkg to bring up the installation step, and then click next. Finally, the tips after installation is complete. If there is a problem in the middle, open readme.txt for reading.

2: The third pkg is used to set whether to start mysql at startup. If double-click is used, next is installed successfully. If you want to cancel the startup of mysql, open readme.txt.

3: The Second file is used to manually start mysql.

4: After installation, you can view Related Files: switch to the root permission by running the sudo-I command. Read readme.txt to find the corresponding directory.

5: When you run the mysql command, the command not found prompt is displayed. You need to map the mysql command to usr/bin.

The command operation is as follows:

MacBook-Pro:/ root# ln -s /usr/local/mysql/bin/mysql /usr/bin

Then execute mysql and the prompt is as follows:


Then the installation is successful. You can perform operations related to creating databases and SQL commands.


How to install mysql on a mac Machine

Install an mamp pro Kit.
 
How to install mysql on mac

I went there and went directly to the next dmg on the official website. It is best not to go to version 10.5 for version 10.6 x64.

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.