没看帮助吗?'http' authentication mode Was called 'advanced' in versions before 2.2.3. Introduced in 1.3.0, it uses Basic HTTP authentication method and allows you to login as any valid MySQL user. Is only supported with PHP running as an Apache module, not with CGI. See also FAQ 4.4 about not using the .htaccess mechanism along with 'http' authentication mode.
HTTP验证方式需要PHP以apache的模块的方式安装,而你是以CGI模式安装的
检查一下你的apache运行模式吧。
Is only supported with PHP running as an Apache module, not with CGI. 这一句说得这么清楚,php以模块的方式安装,不要用CGI的方式安装
'http' authentication mode:Was called 'advanced' in versions before 2.2.3. Introduced in 1.3.0, it uses Basic HTTP authentication method and allows you to login as any valid MySQL user. Is only supported with PHP running as an Apache module, not with CGI. See also FAQ 4.4 about not using the .htaccess mechanism along with 'http' authentication mode. 让我来翻译一下: http 验证模式: 在2.2.3版本之前叫做高级版本 在1.3.0版本引进,他用来基于http验证模式和允许你作为任何有效的MYSQL用户登陆。 只支持PHP运行在APACHE模块,CGI模块不行。 最后一句无关紧要-也就是说HTTP验证模式一定要在APACHE里面运行,他已经脱离了WEB模式,也就是CGI,他属于WINDOW模式, 而config是在CGI运行,他可以在config.ini.php里面设置用户密码,不安全。-不知道你听懂了没有,呵呵
Was called 'advanced' in versions before 2.2.3.
Introduced in 1.3.0, it uses Basic HTTP authentication method and allows you to login as any valid MySQL user.
Is only supported with PHP running as an Apache module, not with CGI.
See also FAQ 4.4 about not using the .htaccess mechanism along with 'http' authentication mode.
这一句说得这么清楚,php以模块的方式安装,不要用CGI的方式安装
在华军上下了个新的appserv2.5.5(原来是2.4.5)就没有这种情况,
但我还是想把这个问题搞明白,不想就这么混过去了.:)
apache运行模式看apache的httpd.conf没用过appserv,查看一下mysql的版本
如果>4.0,验证的算法是不同于旧版本的,可能与php有冲突,因为php用的是旧mysql引擎
应该将下面几行加入 Apache 的 httpd.conf 文件: 例子 6-3. PHP 作为 Apache 1.3.x 的一个模块这里假设 PHP 安装在 c:\php。如果不是这样请根据情况修改路径。 对于 PHP 4: # 在 LoadModule 一节的末尾添加
# 不要忘记将该文件从 sapi 复制出来
LoadModule php4_module "C:/php/php4apache.dll"# 在 AddModule 一节的末尾添加
AddModule mod_php4.c
apache 1.3.34 2.0.55
php 4.4.1 5.1.1
mysql 5.0.16 5.0.16
phpmyadmin 2.5.7-pl1 2.6.4-pl4
2.5.5的版本就没有这样的问题,我的视频教程里用的版本和2.4.5差不多,也没有问题,
郁闷阿,楼上有几位说要把php用apache模块安装,我也按要求修该了配置文件(见上),可是问题依旧
mysql跟php版本是多少?
就是root 123456 2.4.5版
apache 1.3.34
php 4.4.1
mysql 5.0.16
phpmyadmin 2.5.7-pl1
Introduced in 1.3.0, it uses Basic HTTP authentication method and allows you to login as any valid MySQL user.
Is only supported with PHP running as an Apache module, not with CGI.
See also FAQ 4.4 about not using the .htaccess mechanism along with 'http' authentication mode. 让我来翻译一下:
http 验证模式:
在2.2.3版本之前叫做高级版本
在1.3.0版本引进,他用来基于http验证模式和允许你作为任何有效的MYSQL用户登陆。
只支持PHP运行在APACHE模块,CGI模块不行。
最后一句无关紧要-也就是说HTTP验证模式一定要在APACHE里面运行,他已经脱离了WEB模式,也就是CGI,他属于WINDOW模式,
而config是在CGI运行,他可以在config.ini.php里面设置用户密码,不安全。-不知道你听懂了没有,呵呵