MySQL Error 1045, user cannot connect

Source: Internet
Author: User
1.root users can log in

Sqlin User is a newly created statement that cannot connect to MySQL

The root user logs in, re-modifies the user's password, executes the statement

use mysql; update user set password=password("sqlin") where user="sqlin(用户名)";

This statement indicates that the password for the user named Sqlin user is changed and the password () encryption operation is performed, and must not be directly
' password= ' Sqlin "'

2.root User Login not

Open the My.ini under MySQL, find [mysqld], add a line below:

Skip-grant-tables

Restart MySQL, log in root, follow the above method to modify the root password, and then delete the My.ini added statements, restart MySQL, you can normally log on.

MySQL Error 1045, user cannot connect

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.