关于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亲测,请各位批评指正。
转载于:https://www.cnblogs.com/lifeifei_heyang/p/4291315.html