安裝 phpMyAdmin 進行遠端存取

安裝 phpMyAdmin 進行遠端存取

我使用 Ubuntu 20.04,並使用遠端 MySql DB(安裝在外部伺服器上)。

我正在尋找安裝 phpMyAdmin 而不安裝本地 MySql 伺服器,但找不到如何做到這一點。有可能嗎?

或者,我可以安裝一個不同的圖形使用者介面,如果有任何好的和簡單的。

答案1

您可以透過命令安裝它:

sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json php-curl

config.inc.php應該改變那裡的行:

$cfg['Servers'][$i]['host'] = 'HostName:port'; 
$cfg['Servers'][$i]['user'] = 'userName'; 
$cfg['Servers'][$i]['password'] = 'Password'; 
$cfg['Servers'][$i]['auth_type'] = 'config';   

相關內容