访问 phpMyAdmin ,结果出错,幸好以前看到类似的问题
#1045 - Access denied for user 'root'@'localhost' (using password: NO)
#1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client
解决:运行MySQL Command Line Client www.shengfang.org
输入:set password for root@"localhost"=old_password('123');
结果又:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'old_p
ssword('123')' at line 1
欢迎使用 phpMyAdmin 2 dot 5.5 www.shengfang.org
MySQL 4.1.13a-nt 在 localhost 以 root@localhost 的身份执行
原来 PASSWORD输入错误~~~~~
然后又出现如下红色警告
欢迎使用 phpMyAdmin 2 dot 6.3-pl1 www.shengfang.org
phpMyAdmin 试图连接到 MySQL 服务器,但服务器拒绝连接。您应该检查 config.inc.php 中的主机、用户名和密码,并且确定这些信息与 MySQL 服务器的管理员所给出的信息一致。
解决:config.inc.php $cfg['Servers'][$i]['password'] = '123'; // MySQL password (only needed
然后又出现如下红色警告 必须在您的配置文件中设定 $cfg['PmaAbsoluteUri'] 指令! www.shengfang.org
继续修改:$cfg['PmaAbsoluteUri'] = 'http://127.0.0.1/phpMyAdmin263';
还是有警告:!
没有发现 PHP 的扩展设置mbstring, 而当前系统好像在使用宽字符集。没有 mbstring 扩展的 phpMyAdmin 不能正确识别字符串,可能产生不可意料的结果. www.shengfang.org
The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.
extension=php_mbstring.dll www.shengfang.org
extension_dir = "O:/php/php/extensions"
重启APACHE
指定:$cfg['Servers'][$i]['auth_type'] = 'http'; 最好指定,这样比较安全?
奇怪:
1、DebugDemo.php echo $undefined_variable; 不知道 $undefined_variable; 是作什么的
查资料,一般都是说模板的时候 另外一个以UNDEFINED_VARIABLE为名的变量的引用不作解析.
2、http://127.0.0.1/phpMyAdmin263/phpinfo.php?lang=zh-utf-8&server=1&collation_connection=utf8_general_ci
Configuration File (php.ini) Path O:\php\Zend\StudioServer\etc\php.ini
Jeanx http://www.phpx.com/happy/top95999.html
我整理的一点关于MySQL4.1的经验!!!
[ 将自遇到的问题解决并和大家一起分享 ]
乱码问题:
在MySQL4.1的安装过程中有缺省character的设置在下图中有显示
如果您所在的服务器有没有选择缺省为GB则会使用UFT8就会出现乱码
或者
只要在你连到数据库后,先执行这句
mysql_query("Set Names 'uft8'");
其中 uft8 可改成你需要的编码,e.g. gb2312 等
这个命令也可以用于 mysql 得命令行,从而可以显示正确的文字
连接数据库出现
-------------------------------------------------------------------------------------------
Client does not support authentication protocol requested
by server; consider upgrading MySQL client
-------------------------------------------------------------------------------------------
由于MySQL 4.1版本开始密码的hash算法改变,所以连接数据库
时可能会出现Client does not support authentication protocol问题。
可以通过一下两种方法解决
其一:
mysql> SET PASSWORD FOR
-> 'some_user'@'some_host' = OLD_PASSWORD('newpwd');
其二:
mysql> UPDATE mysql dot user SET Password = OLD_PASSWORD('newpwd')
-> WHERE Host = 'some_host' AND User = 'some_user';
mysql> FLUSH PRIVILEGES;