phpmyadmin2.2.5如何实现认证功能 $cfgServers[1]['auth_type'] = 'http'; //即可 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 顶阿!!我在我们的服务器上为了方便管理mysql安装了phpmyadmin,但是怎么设置它的安全性呢?要不然在任何地方的任何人都可以管理啦。 在config.inc.php里面找到下面三行$cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (config, http or cookie based)?$cfg['Servers'][$i]['user'] = 'nobody'; // MySQL user$cfg['Servers'][$i]['password'] = 'nobody'; // MySQL password 改成你自己的设置就可以了,其中user只需要有mysql的select权限,这个user的作用是把你在页面上输入的用户名和密码拿到mysql表里面去验证。但是这个user因为存放在文件中,而且是明文的,所以只给mysql表的select权限,不要给其他权限。 也可以在APACHE中设置,比如你把phpMyAdmin放在如下位置:d:/newweb/phpMyAdmin那么在httpd.conf中加入如下内容:<Directory d:/newweb/phpMyAdmin> AuthType Basic AuthName phpMyAdminAuthUserFile e:/apache.txt Options Includes ExecCGI <Limit GET POST> require valid-user </Limit> </Directory> 哦,还有,e:/apache.txt文件是用来放置用户名和密码的格式为: user:password 我的设置为设置为http的时候,得到的却是500(服务器内部错误)很郁闷 mysql5.5 半同步参数rpl_semi_sync_master_timeout 测试 将csv格式文件导入到mysql中的字段问题 sql语句优化 求一条按月分组统计收支情况的sql语句--在线等 如何建立一个知识数据库,将储存最大化?! 求一sql写法 MySQL触发器中如何抛出自定义异常? 存储过程中用预处理 取某个存储过程的参数名,类型,长度. 请教:mysql中有没有类似oracle中(+)的功能? 请问如何用ODBC管理器在mysql中注册一个数据源 mysql包中mysqlclient的c api函数我该怎么编译???使用?
$cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'nobody'; // MySQL user
$cfg['Servers'][$i]['password'] = 'nobody'; // MySQL password
改成你自己的设置就可以了,其中user只需要有mysql的select权限,这个user的作用是把你在页面上输入的用户名和密码拿到mysql表里面去验证。但是这个user因为存放在文件中,而且是明文的,所以只给mysql表的select权限,不要给其他权限。
d:/newweb/phpMyAdmin
那么在httpd.conf中加入如下内容:
<Directory d:/newweb/phpMyAdmin>
AuthType Basic
AuthName phpMyAdmin
AuthUserFile e:/apache.txt
Options Includes ExecCGI
<Limit GET POST>
require valid-user
</Limit>
</Directory>
user:password
很郁闷