Home > Backend Development > PHP Tutorial > 怎么设置phpmyadmin自动登陆和取消自动登录

怎么设置phpmyadmin自动登陆和取消自动登录

WBOY
Release: 2016-06-13 13:05:31
Original
914 people have browsed it

如何设置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';

保存即可。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template