标签:phpmyadmin mysql amp
<?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.
标签:phpmyadmin mysql amp
原文地址:http://blog.csdn.net/chen_jint/article/details/39555353