设置说明:
config.sample.inc.php 修改为 config.inc.php
添加如下代码:。
$i++;
/ Authentication type /
$cfg[‘Servers’][$i][‘auth_type’] = ‘config’;
/ Server parameters /
$cfg[‘Servers’][$i][‘host’] = ‘localhost’;
$cfg[‘Servers’][$i][‘connect_type’] = ‘tcp’;
$cfg[‘Servers’][$i][‘compress’] = false;
/ Select mysqli if your server has it /
// $cfg[‘Servers’][$i][‘extension’] = ‘mysql’;
$cfg[‘Servers’][$i][‘user’] = ‘root’;
$cfg[‘Servers’][$i][‘password’] = ‘’;
$cfg[‘Servers’][$i][‘AllowRoot’] = true;
$cfg[‘Servers’][$i][‘AllowNoPassword’] = true;
$i++;
$cfg[‘Servers’][$i][‘auth_type’] = ‘config’;
$cfg[‘Servers’][$i][‘host’] = ‘192.168.15.2’;
$cfg[‘Servers’][$i][‘connect_type’] = ‘tcp’;
$cfg[‘Servers’][$i][‘compress’] = false;
// $cfg[‘Servers’][$i][‘extension’] = ‘mysql’;
$cfg[‘Servers’][$i][‘user’] = ‘root’;
$cfg[‘Servers’][$i][‘password’] = ‘123456’;
$cfg[‘Servers’][$i][‘AllowRoot’] = true;
$cfg[‘Servers’][$i][‘AllowNoPassword’] = true;
注意修改用户名和密码,可以设置多个,需要在$i++后添加。