MAC Installation and Uninstall Mysql5.7.11 method _mysql

Source: Internet
Author: User

Installation

To http://www.mysql.com/downloads/, select the bottom of the MySQL Community Edition, click on the MySQL Community server download, download DGM archive version.

After the download, we found that there is only one DMG master file, which appears to have multiple installation files before the 5.7 version.

Point to open this file, step-by-step installation, notice in the success of the pop-up prompt box, give a temporary password, must remember, must remember, must remember!!!! If not found, please look at the desktop notifications.

After the installation is successful, go to the last line of preferences to find MySQL and start MySQL (select Start).

The following is a good fix for the temporary password:

Open terminal, General MySQL will default to exist in the local directory, so enter

cd/usr/local/mysql/bin/

Execute the following command:

./mysqladmin–u root–p Password

Then you will be prompted to enter a password, enter your temporary password, after the success will require a new password, will appear in the following code

New Password:

Confirm New Password:

Then the since password would be sent to server in plain text, with the use of SSL connection to ensure password. This represents the success of the modification.

Then use the new password to login to MySQL,

cd/usr/local/mysql/bin/

./mysqladmin–u Root–p

And then enter the new password is good!

Unloading!!!

A variety of problems occurred during the installation process, causing me to repeat the installation many times and eventually make a mess. Later know to install the new need to remove the MySQL before, a file can not stay. So find the complete code from the Internet and keep it here.

Infringement Delete ~ ~ ~ I am the law-abiding good boy

sudo rm/usr/local/mysql

sudo rm-rf/usr/local/mysql*

sudo rm-rf/library/startupitems/mysqlcom

sudo rm-rf/library/preferencepanes/my*

RM-RF ~/library/preferencepanes/my*

sudo rm-rf/library/receipts/mysql*

sudo rm-rf/library/receipts/mysql*

sudo rm-rf/var/db/receipts/com.mysql.

Call Vim/etc/hostconfig to delete the mysqlcom=-yes-line.

Tips: I do not seem to delete clean, so under the Finder-go-gotofolder input/usr/local, to see if there are duplicate MySQL files, and some words will be completely deleted.

Yes, after downloading, there will be a MySQL folder with the version name you downloaded and a MySQL shortcut, we all call this shortcut.

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.