Chinaunix

标题: phpmyadmin 密码的问题?(解决) [打印本页]

作者: 权老实    时间: 2006-06-14 23:43
标题: phpmyadmin 密码的问题?(解决)
mysql 5.0.21 先安的,正常工作,且ROOT已重新设密码。
后来又安phpmyadmin-2.8.1
http://localhost/phpmyadmin
出错误
MySQL 返回:文档
#1045 - Access denied for user 'root'@'localhost' (using password: NO)
修改config.inc.php $cfg['Servers'][$i]['password']      = ''; 加root的密码也不成
只好又将ROOT密码设成空的。http://localhost/phpmyadmin能进来了
在里面又重新设ROOT密码,再http://localhost/phpmyadmin又出上面的错
将ROOT密码设成空的,就可以
请问如何重新设ROOT密码

[ 本帖最后由 权老实 于 2006-6-16 00:05 编辑 ]
作者: 权老实    时间: 2006-06-15 23:04
为什么phpmyadmin的ROOT只能设为空密码?????
作者: rardge    时间: 2006-06-15 23:15
phpmyadmin 用的 mysql 客户端版本和 MySQL 的版本是否兼容?MySQL 4.1 起密码验证机制有变动。
phpmyadmin 我没用过,所以不清楚,提个建议你看看吧,也不知道有没有用。
作者: 权老实    时间: 2006-06-16 00:01
是的!
MySQL 5.0 uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older (pre-4.1) clients. If you upgrade the server from 4.0, attempts to connect to it with an older client may fail with the following message:
Client does not support authentication protocol requested
by server; consider upgrading MySQL client
mysql> SET PASSWORD FOR
    -> 'some_user'@'some_host' = OLD_PASSWORD('newpwd');
解决啦,谢谢你的提醒!!!
(另外,我不知怎么查我phpmyadmin 用的 mysql 客户端版本??)
作者: 权老实    时间: 2006-06-16 00:04
phpMyAdmin - 2.8.1

    * MySQL client version: 3.23.49
    * Used PHP extensions: mysql
知道了!!!!




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2