Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 冲浪宝典 > 网络资源 > 解决phpmyadmin不能登录的问题 (mysql.4.1.x)
【标  题】:解决phpmyadmin不能登录的问题 (mysql.4.1.x)
【关键字】:phpmyadmin,mysql.4.1.x
【来  源】:http://blog.chinaunix.net/article.php?articleId=19389&blogId=243

解决phpmyadmin不能登录的问题 (mysql.4.1.x)

Your Ad Here

MySQL 4.1 and up uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older clients. If you upgrade the server to 4.1, attempts to connect to it with an older client may fail with the following message:

shell> mysql
Client does not support authentication protocol requested
by server; consider upgrading MySQL client


To solve this problem, you should use one of the following approaches:

Upgrade all client programs to use a 4.1.1 or newer client library.

When connecting to the server with a pre-4.1 client program, use an account that still has a pre-4.1-style password.

Reset the password to pre-4.1 style for each user that needs to use a pre-4.1 client program. This can be done using the SET PASSWORD statement and the OLD_PASSWORD() function:

mysql> SET PASSWORD FOR
-> 'some_user'@'some_host' = OLD_PASSWORD('newpwd');


alternatively, use update and FLUSH PRIVILEGES:

mysql> update mysql.user SET Password = OLD_PASSWORD('newpwd')
-> where Host = 'some_host' AND User = 'some_user';
mysql> FLUSH PRIVILEGES;


Substitute the password you want to use for ``newpwd'' in the preceding examples. MySQL cannot tell you what the original password was, so you'll need to pick a new one.

Tell the server to use the older password hashing algorithm:

Start mysqld with the --old-passwords option.

Assign an old-format password to each account that has had its password updated to the longer 4.1 format. You can identify these accounts with the following query:

mysql> select Host, User, Password FROM mysql.user
-> where LENGTH(Password) > 16;


For each account record displayed by the query, use the Host and User values and assign a password using the OLD_PASSWORD() function and either SET PASSWORD or update, as described earlier.

For additional background on password hashing and authentication, see Section 5.5.9, "Password Hashing in MySQL 4.1".

ncr的数据仓库技术(一)前言:【上一篇】
PROGRESS编程其实很简单(二)·续:【下一篇】
【相关文章】
  • 【转帖】WINXP下安装apache+php+mysql+phpmyadmin介绍
  • phpMyAdmin 详解
  • 装phpmyadmin的时候,修改默认安装目录
  • freebsd+apache+mysql+php+phpmyadmin+zend+discuz安装指
  • freebsd+apache+mysql+php+phpmyadmin+zend+discuz傻瓜式
  • MySQL+Apache+PHP+phpMyAdmin ports安装完全图解
  • phpMyAdmin 2.6 傻瓜设置4步曲
  • RedHat7.3下配置网络和apache+mysql+php+phpMyAdmin
  • 乱七嗽?Apache+php+gb+phpMyAdmin)
  • phpMyAdmin 安装配置
  • 【随机文章】
  • 写了个批量替换字符串的批处理(replaceChar.bat)
  • Domino服务器启动只出现时间和一些16进制输出的解决办法
  • 多数浏览器受弹出式窗口攻击
  • Compiere 单据操作及状态编码
  • IT的教育
  • BitTorrent 协议规范(BT协议集合)九
  • JVM的垃圾回收机制详解和调优
  • 这中间实有许多误会
  • 全新高校BBS爆笑签名档之2005消夏版(完整版)
  • JAVA/JSP学习系列之十(JavaMail API发邮件[servlet])
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.