Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
mod_auth_mysql不验证_Mysql_.htaccess - Fatal编程技术网

mod_auth_mysql不验证

mod_auth_mysql不验证,mysql,.htaccess,Mysql,.htaccess,我手动编译了httpd-2.2.19和mod_auth_mysql-3.0.0,apache和mod_auth_mysql工作正常,但是当我尝试使用Htaccess进行mysql验证时,总是告诉我密码不正确,但我选中了这个权限,这是我使用的设置 .htaccess Options Indexes AuthName "Pls enter your username & password" AuthType Basic AuthBasicAuthoritative Off AuthUserF

我手动编译了httpd-2.2.19和mod_auth_mysql-3.0.0,apache和mod_auth_mysql工作正常,但是当我尝试使用Htaccess进行mysql验证时,总是告诉我密码不正确,但我选中了这个权限,这是我使用的设置

.htaccess

Options Indexes
AuthName "Pls enter your username & password"
AuthType Basic
AuthBasicAuthoritative Off
AuthUserFile /dev/null

AuthMYSQLEnable on
AuthMySQLHost localhost
AuthMySQLUser my_mysqluser
AuthMySQLPassword my_mysqlpass
AuthMySQLDB my_mysqldb
AuthMySQLUserTable user_auth
AuthMySQLNameField user_name
AuthMySQLPasswordField user_passwd
AuthMySQLPwEncryption off
require valid-use
Mysql表:

CREATE TABLE `user_auth` (
  `user_name` char(30) NOT NULL,
  `user_passwd` char(20) NOT NULL,
  `user_group` char(10) DEFAULT NULL,
  PRIMARY KEY (`user_name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

感谢您的时间,我修复了我添加的问题:authmysqlon请使用回答功能回答您自己的问题。以便将其标记为已关闭。