• ERROR 1372 (HY000): Password hash should be a 41-digit hexadecimal number;


    rpm 安装了 mysql 5.6 的版本

    遇到的问题

    1. 提示与5.1版本的有冲突. 解决方式, 是 rpm --force -ivh rpm包.rpm 进行强制安装

    2. 启动 mysql 后, MySQL 5.6 版本使用空密码无法登陆. 

        解决方式: mysql 5.6 安装完成后, 会生成一个随机密码, 密码可以在  '/root/.mysql_secret'. 中找到. 第一次连接必须变更密码 且只能使用 'SET PASSWORD' 命令

        eg  'SET PASSWORD = "你的密码"';

    3. 使用其他语句时, 总是会提示 ERROR 1820 (HY000): You must SET PASSWORD before executing this statement. 意思就是说必须先设置一个密码

        而设定密码时又提示 ERROR 1372 (HY000): Password hash should be a 41-digit hexadecimal number ;

        这是因为 你输入的密码是明文, 不允许这么输入. 可以在其他已安装过mysql的终端使用 select password('你想输入的密码');查询出你的密码对应的字符串, 然后用这个字符串替换你的密码.

  • 相关阅读:
    Windows 8.1 Visual Studio 2013 OpenGL 配置
    panic 和 recover的区别
    Beego操作数据库
    sql 中 inner join、left join 和 right join的区别
    Go实现网页爬虫
    SqlServer中 不区分大小写 和 全半角的写法
    循环语句
    switch语句
    iota枚举
    关于Go开发工具(LiteIDE)
  • 原文地址:https://www.cnblogs.com/debmzhang/p/4192285.html
Copyright © 2020-2023  润新知