6
A
回答
15
看看這個:
http://www.onlinehowto.net/config-multiple-servers-in-phpmyadmin/1405
/* Single server config section */
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'dbsub';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysql';
上述六個行代碼配置的phpMyAdmin連接到一臺服務器。注意在第一行$ i ++中增加的i>變量。要定義另一臺服務器,只需複製粘貼上面的塊並更改主機名即可。在每個數據庫服務器配置之前安裝$ i ++語句非常重要。服務器也可以來自不同的數據庫類型。例如MySQL和PostgreSQL。這就是爲什麼PhpMyAdmin如此受歡迎和喜愛。
這裏在登錄卵石工作建立在phpMyAdmin的情況下,我們管理
/*
* Servers configuration
*/
$i = 0;
/*
* First server
*/
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'db';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysql';
/*
* Second server
*/
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'dbsub';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysql';
/*
* Third server
*/
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'stats1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['DisplayServersList'] = TRUE;
/*
* End of servers configuration
最後的變化,這將使服務器列表中的一個顯示在一個不錯的下拉列表中$ cfg [''DisplayServersList''] = TRUE;聲明。這樣,無論何時您進入phpmyadmin的登錄頁面,您都必須選擇您想要使用的服務器。
2
在您的PHPMyAdmin的根目錄下,您有一個名爲config.sample.inc.php的文件。
將它重命名爲config.inc.php並編輯它!
搜索第一服務器和$ CFG樁[ '服務器'] [$ i] [ '主機']設置了正確的價值。
/*
* First server
*/
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = '192.168.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = false;
相關問題
- 1. 無法登錄到本地主機/ phpmyadmin
- 2. 我們可以指定確切的winston級別登錄嗎?
- 3. 我可以在robots.txt中使用「主機」指令嗎?
- 4. 在Mercurial中指定掛鉤時可以指定Windows shell嗎?
- 5. 主機名在登錄時顯示(無)
- 6. 登錄到phpmyadmin時出錯?
- 7. 是否可以使用PowerShell從主機登錄到虛擬機?
- 8. 登錄到phpMyAdmin
- 9. 登錄到PHPMYADMIN
- 10. 本地主機上無法登錄到我的phpmyadmin
- 11. 我可以指定在使用Spring Cloud Deployer Kubernetes部署應用程序時要裝入的主機目錄嗎?
- 12. 如何在主目錄爲777時登錄到遠程主機
- 13. 可以在Liferay中創建自定義登錄頁面嗎?
- 14. Joomla 1.5一個安裝 - 多個虛擬主機:我可以聯合登錄嗎?
- 15. 我可以在css中指定maxlength嗎?
- 16. 我可以在Facebook上登錄Facebook而不登錄嗎?
- 17. 可以在Intranet上登錄已登錄的用戶嗎?
- 18. Dotnetnuke主機登錄重定向到ERR_TOO_MANY_REDIRECTS
- 19. 我無法登錄到phpMyAdmin,但我可以在終端
- 20. 我在哪裏可以找到phpmyadmin登錄頁面?
- 21. 使用sequelize.col時可以指定表嗎?
- 22. PhoneGap在Android上加載時可以顯示本機登錄視圖嗎?
- 23. PHPMyAdmin不會留在登錄
- 24. 登錄頁面在phpmyadmin
- 25. 可以隨時登錄
- 26. phpmyadmin:無法登錄
- 27. 自動登錄phpMyAdmin
- 28. 我可以登錄到的RabbitMQ與虛擬主機用戶
- 29. 我可以使用Heroku Piggyback SSL進行主網站登錄嗎?
- 30. 可以從Joomla登錄到MySQL數據庫,但不能登錄PHPMyAdmin
感謝兄弟。這是工作。不知道,爲什麼你倒退了? O_O –