系统:CentOS 7.9 64位
登录MySQL时出现:
Error: Access denied for user ‘root’@‘localhost’ (using password: YES)
解决:
[root@iZbp1av5n9d40dgk6av4cbZ ~]# /etc/init.d/mysqld stop
[root@iZbp1av5n9d40dgk6av4cbZ ~]# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
[root@iZbp1av5n9d40dgk6av4cbZ ~]# mysql -u root mysql
mysql> UPDATE user SET Password=</