【认证方式】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)
提前祝博客 元旦快乐 ,支持原创 植物大战僵尸 欢迎回访
Wowza, problem soveld like it never happened.
I was so confused about what to buy, but this makes it undesratndable.
虽然自己不懂php,但还是看看,学习学习,自己也在学习中!
We could’ve done with that isnihgt early on.
I am foreevr indebted to you for this information.
不错加油
That’s an expert asnewr to an interesting question
This wbestie makes things hella easy.
只要有流量就肯定有收入,每天结算,做够三十元就支付。
博客很好看 请问一下 博主的博客用的是什么主题。谢谢
Good to see a taelnt at work. I can’t match that.
Weeeee, what a quick and easy soutlion.
关注@@
Thanks for writing such an easy-to-understand arctile on this topic.
I’m rellay into it, thanks for this great stuff!