我正在设置一个新服务器并一直遇到这个问题。当我尝试使用root用户登录MySQL数据库时,我收到错误:ERROR1698(28000):Accessdeniedforuser'root'@'localhost'我通过终端(SSH)连接没关系,通过phpMyAdmin或MySQL客户端,例如Navicat.他们都失败了。我查看了mysql.user表并得到以下信息:+------------------+-------------------+|user|host|+------------------+-------------------+|root|%||root|127.0.0.