这时间在安装PHPBB的论坛,发现一个问题,那就是输入用户名跟密码后,点击安装,总是报了以下的错误:
程序代码
ORA-28008: invalid old password
Cause: old password supplied is wrong; Hence user cannot be authenticated using old password
Action: Supply the correct old password for authentication
Cause: old password supplied is wrong; Hence user cannot be authenticated using old password
Action: Supply the correct old password for authentication
但是,使用mysql客户端登录确没有问题,奇怪,查找了文档之后,才发现,原来mysql自从4.1以后,认证方式都做了改变,难怪了!在MYSQL官方网站上面查找相应的信息之后,找到了解决方案,只需使用root帐号登录mysql,接着修改一下指定用户的密码方式即可,从mysql4.1以后,提供了OLD_PASSWORD()的函数,只要使用该函数修改一下用户的密码即可。
程序代码
set
password
for
'root'@
'%'
=OLD_PASSWORD
(
'admin'
)
;
其中,root@'%'表示修改用户为root,%表示任意主机或localhost