Linux安裝phpMyAdmin配置管理多個數據庫


1、下載 :phpMyAdmin

2、解壓安裝包:

1 tar -zxvf phpMyAdmin-4.6.5.2-all-languages.tar.gz

3、替換目錄 : 

1 mv phpMyAdmin-4.6.5.2-all-languages pma

4、修改配置文件:

1 cd pma
2 cp config.sample.inc.php config.inc.php

5、修改config.inc.php 添加host 地址

 1 $i = 0;
 2 
 3 /**
 4  * First server
 5  */
 6 $i++;
 7 /* Authentication type */
 8 $cfg['Servers'][$i]['auth_type'] = 'cookie';
 9 /* Server parameters */
10 $cfg['Servers'][$i]['host'] = '127.0.0.1';
11 $cfg['Servers'][$i]['connect_type'] = 'tcp';
12 $cfg['Servers'][$i]['compress'] = false;
13 $cfg['Servers'][$i]['AllowNoPassword'] = false;
14 
15 // **** 如果需要多個數據庫 繼續添加即可 *** //
16 
17 /**
18  * Second server
19  */
20 # $i++;
21 # $cfg['Servers'][$i]['auth_type'] = 'cookie';
22 # $cfg['Servers'][$i]['host'] = 'host地址2';
23 # $cfg['Servers'][$i]['connect_type'] = 'tcp';
24 # $cfg['Servers'][$i]['compress'] = false;
25 # $cfg['Servers'][$i]['AllowNoPassword'] = false;

 

 

 

 

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM