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(‘你想输入的密码‘);查询出你的密码对应的字符串, 然后用这个字符串替换你的密码.

时间: 2024-10-18 01:29:09

ERROR 1372 (HY000): Password hash should be a 41-digit hexadecimal number;的相关文章

ERROR 1372 (HY000): Password hash should be a 41-d

MySql创建用户(包括密码)时,会提示ERROR 1372 (HY000): Password hash should be a 41-digit hexadecimal number: 问题原因:你输入的密码是明文.不允许这么输入. 解决办法:用select password('你想输入的密码');查询出你的密码对应的字符串, 然后用这个字符串在创建用户命令中替换你的密码.

mysql5.7密码过期ERROR 1862 (HY000): Your password has expired. To log in you must change

环境: ubuntu14.04  mysql5.7 一.mysql5.7 密码过期问题 报错: ERROR 1862 (HY000): Your password has expired. To log in you must change it using a client that supports expired passwords. 翻译: 错误1862(HY000):你的密码已经过期.登录必须改变它使用一个客户端,支持过期的密码. 解决方法: 1. 用忽略授权表的方法进入mysql  

[mysql] ERROR 1862 (HY000): Your password has expired. To log in you must change it using a client that supports expired passwords.

今天安装mysql遇到这样一个问题: ERROR 1862 (HY000): Your password has expired. To log in you must change it using a client that supports expired passwords. 意思就是密码过期了. 修改密码了: mysql> SET PASSWORD = PASSWORD('abc'); ERROR 1819 (HY000): Your password does not satisfy

安装完绿色版MySQL修改密码:ERROR 1820 (HY000): You must reset your password using ALTER USER statement befo re executing this statement.

mysql> update mysql.user set password=PASSWORD('123456') where User='root';ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement. 参考:http://dev.mysql.com/doc/refman/5.6/en/alter-user.html 直接执行:set

ERROR 1819 (HY000): Your password does not satisfy the current policy requirements

为了加强安全性,MySQL5.7为root用户随机生成了一个密码,在error log中,关于error log的位置,如果安装的是RPM包,则默认是/var/log/mysqld.log. 一般可通过log_error设置 mysql> select @@log_error; +---------------------+ | @@log_error | +---------------------+ | /var/log/mysqld.log | +---------------------

mysql5.7设置简单密码报错ERROR 1819 (HY000): Your password

[问题] 有时候,只是为了自己测试,不想密码设置得那么复杂,譬如只想设置root的密码为123456. SET PASSWORD FOR 'root'@'localhost' = PASSWORD('123456'); 但是会报错: mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('123');ERROR 1819 (HY000): Your password does not satisfy the current policy re

linux - mysql 异常:ERROR 1820 (HY000): You must SET PASSWORD before executing this statement

问题描述 ERROR 1820 (HY000): You must SET PASSWORD before executing this statement 备注:新安装完数据库后,在 xshell 上登录 mysql 后,运行 SQL 语句报如上错误 解决方案一 # /etc/init.d/mysql stop // 关闭 mysql # mysqld_safe --user=mysql --skip-grant-tables --skip-networking & # mysql -u ro

mysql 5.7密码报错 ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

1.重新修改密码,语句如下: mysql> alter user 'root'@'localhost' identified by '123'; Query OK, 0 rows affected (0.00 sec) 2.如果修改过程出现错误(如下),转后面操作: mysql> alter user 'root'@'localhost' identified by '123'; ERROR 1819 (HY000): Your password does not satisfy the cu

MySQL5.7 报错 ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement

MySQL5.7 报错 : ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement 需要重新设置密码.那我们就重新设置一下密码,命令如下: set password = password('123456'); 原文地址:https://www.cnblogs.com/Dev0ps/p/11738557.html