Access denied for user: & #39; root @ localhost & #39; (Using password: YES ),

Source: Internet
Author: User

Access denied for user: 'root @ localhost' (Using password: YES ),

After mysql is successfully installed in centos

First use of root logon: Access denied for user: 'root @ localhost' (Using password: YES)

The reason is that the root password in the mysql database user table in the initial mysql database is empty.

Therefore, you need to change the root password.

First Run: mysql-u root

Enter the mysql database command line

Then go to the mysql database: use mysql;

Run the following command to change the password: update user set password = password ('aaa') where user = 'root'


Mysql has a problem: Access denied for user: 'root @ localhost' (Using password: YES)

The upstairs is basically correct. If you test it on your computer, the first item won't be wrong. You can check the username, password, and database name for others.

Mysql problem: access denied for user 'root @ localhost' (using password: YES)

This error indicates that the root password is incorrect. If you do not know the root password, change the username and password that can be logged in.

---
The above is helpful to you.

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.