在将MySQL 5.1升级到5.6之后,试图启动JBoss的尝试失败了,只有以下例外情况:
java.sql.SQLException:
Server is running in --secure-auth mode, but 'user'@'localhost'
has a password in the old format; please change the password to the new format如何解决这个问题?
发布于 2015-04-23 01:09:03
这一问题是通过以下方式解决的:
1)更新“用户”用户密码哈希的值
UPDATE mysql.user set password = PASSWORD('my password text') where user= 'user';
2)停止“mysql”服务器
/etc/init.d/mysql stop
3)在/etc/my.cnf文件上设置标志old_passwords=1
4)启动“mysql”服务器
/etc/init.d/mysql start
还请参阅文档:MySQL密码散列
发布于 2018-12-20 21:45:35
将JBOSS用户的密码重置为与以前相同的密码。新版本的MySQL将使用新的强算法进行散列,并且它将重新开始工作。
发布于 2020-05-28 15:24:59
在我的例子中,这是通过关闭安全关闭来解决的。
编辑/etc/my.cnf
在mysqld部分下添加:
old_passwords=1
secure-auth=falsehttps://stackoverflow.com/questions/29811694
复制相似问题