> ## Content Index
> Fetch the complete content index at: https://www.albert-yu.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# 2020ironman 12th – Modern Web – Day15 – MYSQL 管理上的難題
- URL: https://www.albert-yu.com/blog/2020ironman-12th-modern-web-day15-mysql-management-challenges/
- Published: 2020-09-28T16:00:50.000Z
- Updated: 2026-10-30T03:43:23.000Z
- Author: Albert Yu
- Tags: 2020ironman 12th – Modern Web - PHP on AWS 進化論 - 從單主機一路進化到Serverless，以WordPress與 laravel 為例 (中斷), Ithome鐵人賽

## 方便與管理

傳統上管理MYSQL都是開發的工作

而phpmyadmin則是cpanel中的工具

在迷你網站上cpanel已是必備工具

而在拆分mysql後所需面對的就是如何去連過去

## phpmyadmin 設定方式

首先要先瞭解到如果要客制化設定的話需產生config.inc.php，並且設定該檔案

該檔案範例檔案為 config.sample.inc.php

這是在您下載phpmyadmin就有的檔案

首先將config.sample.inc.php複製並重新命名成config.inc.php

然後打開config.inc.php尋找下列原始碼

![avatar](https://www.albert-yu.com/content/images/2026/10/2020ironman-12th-modern-web-day15-mysql-guan-li-shang-de-nan-ti-01.png)

如果只是需要單台主機連線就把 $cfg\[\\'Servers\\'\]\[$i\]\[\\'host\\'\] = \\'localhost\\';

中的localhost改成遠端主機的IP或URL

如果是在單一個phpmyadmin中要控制多個主機則複製下列黃框中的文字

![avatar](https://www.albert-yu.com/content/images/2026/10/2020ironman-12th-modern-web-day15-mysql-guan-li-shang-de-nan-ti-02.png)

進一步往下貼上

![avatar](https://www.albert-yu.com/content/images/2026/10/2020ironman-12th-modern-web-day15-mysql-guan-li-shang-de-nan-ti-03.png)

貼上之後就會顯示如

![avatar](https://www.albert-yu.com/content/images/2026/10/2020ironman-12th-modern-web-day15-mysql-guan-li-shang-de-nan-ti-04.png)

這時就可以用您的帳號密碼進行登入