溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

phpmyadmin4.4多ip選擇

發(fā)布時(shí)間:2020-08-02 13:56:23 來源:網(wǎng)絡(luò) 閱讀:499 作者:liang3391 欄目:web開發(fā)

phpMyAdmin允許定義輸入的MySQL服務(wù)器IP地址,用戶名和密碼

修改/libraries/config.default.php為真即可,簡(jiǎn)單安全省事

$cfg['AllowArbitraryServer'] = true;


phpMyAdmin修改config.inc.php,服務(wù)器地址為下拉列表可選登錄多個(gè)服務(wù)器

增加config.sample.inc.php文件,參考下面配置或者訪問setup手動(dòng)生成

<?php
/*
* Generated configuration file
* Generated by: phpMyAdmin 4.4.11 setup script
* Date: Fri, 10 Jul 2015 15:54:42 +0800
*/


/* Servers configuration */
$i = 0;

/* Server: 10.4.14.64 [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = '10.10.6.64';
$cfg['Servers'][$i]['host'] = '10.10.6.64';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
/* Server: 10.10.1.172 [2] */
$i++;
$cfg['Servers'][$i]['verbose'] = '10.10.1.172';
$cfg['Servers'][$i]['host'] = '10.10.1.172';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';

/* End of servers configuration */

$cfg['blowfish_secret'] = '559f78c86f22d8.48481095';
$cfg['DefaultLang'] = 'zh_CN';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
?>

如果mysql是5.1的這個(gè)版本php會(huì)報(bào)錯(cuò)(

您應(yīng)升級(jí)到 MySQL 5.5.0 或更高版本

),解決方案:

phpmyadmin4.4多ip選擇

vi /var/www/html/phpmyadmin/libraries/common.inc.php
#查找
if (PMA_MYSQL_INT_VERSION < 50500) {
#更換為
if (PMA_MYSQL_INT_VERSION < 50100) {


向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI