标签:
使用放下挺简单的,因为某些业务需求,phpmyadmin不让放在网站服务器上,所以放在本地可以方便管理远程数据库
点击下载会下载一个 config.inc.php
吧这个文件放在phpmyadmin的根目录就可以,登录的时候输入用户名和密码更安全,有cookies保存
<?php /* * Generated configuration file * Generated by: phpMyAdmin 4.4.11 setup script * Date: Wed, 29 Jul 2015 09:38:48 +0800 */ /* Servers configuration */ $i = 0; /* Server: zx [1] */ $i++; $cfg[‘Servers‘][$i][‘verbose‘] = ‘zx‘;//名称无所谓 $cfg[‘Servers‘][$i][‘host‘] = ‘192.168.1.1‘;//远程数据库IP $cfg[‘Servers‘][$i][‘port‘] = ‘‘;//最好为空 $cfg[‘Servers‘][$i][‘socket‘] = ‘‘;//最好为空 $cfg[‘Servers‘][$i][‘connect_type‘] = ‘tcp‘; $cfg[‘Servers‘][$i][‘auth_type‘] = ‘cookie‘; $cfg[‘Servers‘][$i][‘user‘] = ‘‘; //最好为空 $cfg[‘Servers‘][$i][‘password‘] = ‘‘;//最好为空 /* End of servers configuration */ $cfg[‘blowfish_secret‘] = ‘55b82c632104b6.87927098‘; $cfg[‘DefaultLang‘] = ‘zh_CN‘; $cfg[‘ServerDefault‘] = 1; $cfg[‘UploadDir‘] = ‘‘; $cfg[‘SaveDir‘] = ‘‘; ?>
标签:
原文地址:http://www.cnblogs.com/zx-admin/p/4685116.html