Mac modifies MySQL password, navicat connection failure reason

Source: Internet
Author: User

1, cd/usr/local/mysql/bin/
?
2, sudo su
After input will be asked to enter your computer password, enter the time is nothing to display, after the output, enter

3./mysqld_safe--skip-grant-tables &
This step is to cross permission validation?

4,./mysql-u Root

Use another window to log in as root, because the reason for the third step does not require a password.

5. Update user set authentication_string= ' root123 ' where user= ' root ';?

Navicat Connection Error:

The previous step was thought to have been able to log in, but the Navicat connection test appeared:

ERROR 1862 (HY000): Your password has expired. To log on you must
Change it using a client, that supports expired passwords.

So the next two steps are required (I can also log in with the client without the following steps)

To open a new terminal:

1, cd/usr/local/mysql/bin/
?
2, sudo su

3,./mysql-uroot-proot123

4, SET PASSWORD = PASSWORD (' root123 ');

Reference http://blog.csdn.net/jia611/article/details/51553067

Mac modifies MySQL password, navicat connection failure reason

Related Article

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.