update mysql.user set authentication_string=password('123456789') where user='xiaogang' and host='%';
该语法有错误吗?
你mysql那个版本的?5.7之后的才是authentication,之前的还是password。另外尝试一下用 ALTER USER 'xiaogang'@'%' IDENTIFIED BY '123456789';另外你的问题咋和另外一个题主的一毛一样?都是xiaogang都是123456789
8.0.1版本移除了password函数。
你试下alter修改密码的方法:https://www.csdn.net/tags/OtDaEg3sMzQ2ODUtYmxvZwO0O0OO0O0O.html
看起来没什么问题