phpmyadmin如何设置自动登陆
如何将安装的 phpmyadmin 设置为自动登陆!
首先在根目录找到 config.sample.inc.php 复制一份文件名改为config.inc.php (如果已经存在 config.inc.php 文件,则直接修改该文件即可),打开config.inc.php 找到
$cfg['Servers'][$i]['auth_type'] 将
$cfg['Servers'][$i]['auth_type'] = 'cookie';
中的 cookie 改成 http 或者 config 即 :
$cfg['Servers'][$i]['auth_type'] = 'http';
或者
$cfg['Servers'][$i]['auth_type'] = 'config';
然后在下面加上如下代码:
$cfg['Servers'][$i]['user'] = 'root'; // 设置为你自己的mysql用户名 $cfg['Servers'][$i]['password'] = '123′; // 设置为你自己的mysql密码
保存即可。
如果想取消phpmyadmin自动登陆。只需把
$cfg['Servers'][$i]['auth_type'] = 'http';
改成
$cfg['Servers'][$i]['auth_type'] = 'cookie';
保存即可。
您可能感兴趣的文章
- 如何设置phpmyadmin自动登陆和取消自动登录
- phpMyAdmin不允许空密码登陆的解决办法
- phpmyadmin 配置文件详细的解释说明
- phpMyAdmin Cannot start session without errors错误解决办法
- 该如何解决php运行出现Call to undefined function curl_init错误
- thinkphp页面跳转(successerror)如何设置跳转等待时间
- PHP设置时区的几种方法总结
- php提示Call to undefined function curl_init() 错误的解决办法
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。