phpmyadmin的登陆配置

本文介绍了phpMyAdmin两种登录方式:config和cookie,并详细解释了如何通过配置config.inc.php文件来实现免密码登录。

关于phpmyadmin的登陆配置:

phpmyadmin的登陆有两种方式,位于配置文件 config.inc.php 中,代码如下:

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '123456';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';

/* Authentication type */
//$cfg['Servers'][$i]['auth_type'] = 'cookie';

以下二者选其一,
$cfg['Servers'][$i]['auth_type'] = 'config';
或者
//$cfg['Servers'][$i]['auth_type'] = 'cookie';

如果为cookie,则登陆phpmyadmin需要输入账号密码。


如果为config,则需要配置账号和密码等配置项,然后phpmyadmin不需输入密码直接登陆。

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '123456';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';

以上内容均由博主fishli007亲测,请各位批评指正。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值