MAC Installation mysql5.7 Considerations

Source: Internet
Author: User
Tags mysql in ssl connection

Download and install

Go to MySQL official website (http://dev.mysql.com/downloads/mysql/) Download your own Mac relative to MySQL Community

After downloading the pressure, you will find that MySQL has only one DMG master file xxxx.pkg

Special reminders When installing this file: 5.7 After installing MySQL is no longer the same as the previous version of the default password: root, the installation process will appear a popup window prompt, there is a temporary password, please copy it to save, you will need to use

Modify temporary password

After the installation is successful, please start MySQL in your preferences

Use the temporary password to log in to MySQL, see if you can log in, if possible, the following will be a temporary password changes.

  

After successful installation, use the temporary password to log in to MySQL, see if you can log in, if possible, the following will be a temporary password changes.

Enter/usr/local/mysql-5.7.../bin/

Execute./mysql-u root-p

Enter the temporary password ( is prompted in the installation process pop-up window, if not saved, please see your desktop to the right of the notification )

Use temporary password login success will have such a hint: You must reset your password using the ALTER USER statement before executing this statement.

This is the prompt you need to reset the password.

Quit MySQL

or under the/usr/local/mysql-5.7.../bin/path,

Execute the command: The code is as follows:

./mysqladmin-u root-p Password

Then enter your temporary password and the password will be reset after success

The code is as follows: New Password:
Confirm New Password: Enter the password.

Shortly thereafter, since password would be sent to server in plain text, with the use of SSL connection to ensure password safety. This is just a hint indicating that the modification was successful

Then you can go back in and log in to MySQL with the new password, and the installation is complete.

MAC Installation mysql5.7 Considerations

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.