Reset MySQL 5.7 password on Mac

Source: Internet
Author: User
Reset mysql 5.7 password on mac > My Mac system is OSX 10.12 to complete the mysql5.7 before the login, online said with DMG after the installation, a box pops up, there will be a temporary password,
But when I installed it, I shook my hand and the hint closed. Try a lot of methods are not, finally found a method on so, posted out hope to help everyone. 1. Open a terminal window 2. Enter Sudo/usr/local/mysql/support-files/mysql.server STOP3. Enter Sudo/usr/local/mysql/bin/mysqld_safe--skip-grant-tables4. Do not close the window, then open a terminal window 5. Enter Sudo/usr/local/mysql/bin/mysql-u ROOT6. Mysql> will appear at this time, enter use MYSQL7. Finally enter update user set Authentication_string=password (' 9527 ') where user= ' root ';
8. Enter quit;
That's OK.

Reset MySQL 5.7 password on 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.