Install MySQL and workbench on your Mac

Source: Internet
Author: User
Tags mysql commands mysql in administrator password

Download MySQL for Mac https://dev.mysql.com/downloads/installer/

Website download very Slow---Baidu Cloud: Link: https://pan.baidu.com/s/1c1IdwSo Password: jfv1

2. Double-click mysql-5.7.20-macos10.12-x86_64.dmg to Unzip, double-click mysql-5.7.20-macos10.12-x86_64.pkg to install

3. Continue, Continue, Agree, Install, enter the administrator password

4. Record the password in the pop-up window, this is the notification bar cannot be copied (the popup password can be copied)

5. Go to System Preferences, find MySQL, start the service

6. Add MySQL commands to the system

(1). Go to/usr/local/mysql/bin to see if there is MySQL in this directory
(2). Perform Vim ~/.bash_profile
Add the Mysql/bin directory to the file
Path= $PATH:/usr/local/mysql/bin
When you are finished adding, press ESC, and then enter Wq save.

(3). Finally enter source ~/.bash_profile on the command line

7. Log in to MySQL via Mysql-uroot-p and enter the previously saved password

8. Reset MySQL Initial password

SET PASSWORD for ' root ' @ ' localhost ' = PASSWORD (' NewPassword ');  

NewPassword Enter the password you want to enter

Workbencha Direct Installation

Baidu Cloud: Link: https://pan.baidu.com/s/1slPuIuh Password: FVR3

Enter the modified password after entering

Install MySQL and workbench on your Mac

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.