<?php /* * Generated configuration file * Generated by: phpMyAdmin 4.1.14 setup script * Date: Wed, 24 Sep 2014 08:15:24 +0200 */ /* Servers configuration */ $i = 0; /* Server: 85 [1] */ $i++; $cfg['Servers'][$i]['verbose'] = '85'; $cfg['Servers'][$i]['host'] = '172.163.25.85';/*遠程數據庫主機*/ $cfg['Servers'][$i]['port'] = ''; $cfg['Servers'][$i]['socket'] = ''; $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['nopassword'] = true; $cfg['Servers'][$i]['auth_type'] = 'config';/*認證方式,以配置文件方式認證*/ $cfg['Servers'][$i]['user'] = 'user2';/*數據庫賬戶*/ $cfg['Servers'][$i]['password'] = '';/*密碼為空*/、 $cfg['Servers'][$i]['AllowNoPassword'] = true;/*賬戶密碼為空時,添加此句*/ /* End of servers configuration */ $cfg['DefaultLang'] = 'en'; $cfg['ServerDefault'] = 1; $cfg['UploadDir'] = ''; $cfg['SaveDir'] = ''; ?>
$cfg['Servers'][$i]['AllowNoPassword']
Type: boolean
Default value: false
Whether to allow logins without a password.The default value of false for this parameter prevents unintended access to aMySQL server with was left with an empty password for root or on which ananonymous (blank) user is defined.