這是本文件的舊版!


phpmyadmin

記錄一些遇到的問題。

修改config.inc.php,加入多組DB設定,其中需特別注意的是host與port。如果是在同一台又不想都用localhost,可以自己命名再去改/etc/hosts即可。

$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'mysql-5.6.21';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
$cfg['Servers'][$i]['port'] = '3308';