首页
学习
活动
专区
圈层
工具
发布
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    ERROR 1396 (HY000): Operation ALTER USER failed for ‘root’@’localhost’「建议收藏」

    ,plugin from user where user=’root’; 我们可以发现加密方式是caching_sha2_password 5.mysql> select user,host from...user; +——————+———–+ | user | host | +——————+———–+ | root | %...| localhost | | zhangj | localhost | +——————+———–+ 注意我的root,host是’%’ 6.然后使用命令:alter...user ‘root’@’%’ identified with mysql_native_password by ‘your password’; 执行这个语句时如果报错“ERROR 1396 (...HY000): Operation ALTER USER failed for ‘root’@’%’”,就执行第6步,如果没报错就走第7步 7.保留当前窗口,新打开一个窗口,重新进入mysql,执行该命令就可以了

    7.3K10
    领券