luohengubuntuetcmysql$ sudo mysql -u rootERROR 1045 28000 Access denied for user rootlocalhost using password NO
The error message suggests that you are trying to access the MySQL server as the root user without providing a password. By default, the root user in MySQL is set to require a password for authentication.
To fix this issue, you can try using the following command to login with the root user and provide the password:
sudo mysql -u root -p
After running this command, you will be prompted to enter the password for the root user.
原文地址: https://www.cveoy.top/t/topic/hRCQ 著作权归作者所有。请勿转载和采集!