alter user 'root'@'localhost' identified with mysql_native_password by '123456';
应该是你的引号是中文模式的觉得有用的话采纳一下哈
修改密码得权限得到了吗