phpmyadmin认证方式

【认证方式】phpmyadmin提供了 三种方式:
config / http / cookie
http和cookie这两种方式,都提示用户输入用户名和密码, 而且, 一旦开了一个窗口 认证成功 , 再开一个窗口 ,还访问http://bobnas:8080/phpmyadmin 仍然要进行身份验证(IE 6.0) 。
config 这种方式,是把用户名和密码写道config.default.php 中去了, 用户直接就进去了,不需要登陆。
【涉及的配置文件】:phpmyadmin/libraries/config.default.php
【建议】: 对于我们的NAS 推荐 cookie 比较好。
【下面是开始phpmyadmin的认证的测试:】1> 如果认证方式是cookie
配置 config.default.php 如下:

[Copy to clipboard]
CODE:
/**
* The ‘cookie’ auth_type uses blowfish algorithm to encrypt the password. If
* at least one server configuration uses ‘cookie’ auth_type, enter here a
* passphrase that will be used by blowfish. The maximum length seems to be 46
* characters.
*/
$cfg['blowfish_secret'] = ’1234567890′; //随便填写,最长46个字符
。。。
$cfg['Servers'][$i]['auth_type'] = ‘cookie’; // Authentication method (config, http or cookie based)?
//以下两项仅仅当 auth_type = config 时候 ,才有效, 这样,就不会有登陆窗口 , 直接就进入,可以直接操作MySQL 了。
$cfg['Servers'][$i]['user'] = ‘root’; // MySQL user
$cfg['Servers'][$i]['password'] = ’123456′; // MySQL password (only needed
// with ‘config’ auth_type)

phpmyadmin认证方式》上有 16 条评论

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>