关于phpMyAdmin管理不同端口、版本、IP的MySQL服务器
[ 2009-11-04 15:24:48 | 作者: admin ]
引用
1、打开“路径/phpmyadmin/libraries/config.default.php”,查找相关项并修改为以下内容:
$cfg['Servers'][$i]['host'] = $_COOKIE["mysqlhost"];
$cfg['Servers'][$i]['port'] = $_COOKIE["mysqlport"];
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['blowfish_secret'] = 'sina';//这里的sina是用来加密cookie的密钥
$cfg['Servers'][$i]['host'] = $_COOKIE["mysqlhost"];
$cfg['Servers'][$i]['port'] = $_COOKIE["mysqlport"];
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['blowfish_secret'] = 'sina';//这里的sina是用来加密cookie的密钥
引用
2、打开“路径/phpmyadmin/index.php”,在文件最开头 if($_POST["mysqlhost"] != "" && $_POST["mysqlport"] != "")
阅读全文…
1