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.