Tag Archives: error: ‘Access denied for user ‘root’@’localhost’ (using password: YES)’

Mysql database initialization password error: error: ‘access denied for user’ root ‘@’ localhost ‘(using password: Yes)’

Error reporting reason:

Password input error. If you are prompted with using password: No, it means that you need to enter a password  

Solution:

When enter password: appears, do not enter the password. Press Ctrl + C directly and you will be asked to enter a new password.