MySQL Use tips

Source: Internet
Author: User

1) Forgot Password:

Reference: https://www.jb51.net/article/108609.htm

80527069

What if you have forgotten your password?

We can open the/etc/my.cnf file and write it at the bottom of the file:

Skip-grant-tables

Save the exit on it, then remember to restart!!!

Then you can enter without entering the password and then change the password after entering!!!

If you change your password, report this error:

Operation ALTER USER failed for ' root ' @ ' localhost '

or the wrong:

The MySQL server is running with the--skip-grant-tables option so it cannot execute this statement

Don't panic, this is because you use a remote connection, remember that you change the MySQL database user table localhost to% bar, indicating any connection, but not secure,

Just because you changed this, you just change him back: localhost root, and then the command:

ALTER USER "root" @ "localhost" identified by "your new password";

You can, if not, you flush privileges first, and then modify.

2) Print operation log:

3) Add User:

MySQL Use tips

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.