#phpmyadmin# 增加多 #mysql# 服务器管理,并通过配置文件设置 #mysql# 服务器密码
foreach ([
'localhost' => ['password' => 'password'],
'server1' => ['password' => 'server1_password'],
] as $host => $config) {
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['host'] = $host;
foreach ($config as $k => $v) {
$cfg['Servers'][$i][$k] = $v;
}
$i++;
}
/post/1kWU2ROP