本文章來給大家介紹關於PHPMyAdmin設置數據庫連接端口代碼,有需要了解的朋友可參考。 代碼如下 復制代碼
/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = ‘config’;
$cfg['Servers'][$i]['user'] = ‘root’;
$cfg['Servers'][$i]['password'] = ”;
$cfg['Servers'][$i]['port'] = ’3307′;
$cfg['Servers'][$i]['extension'] = ‘mysql’;
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = ”;
比如MySQL的端口設置為3308,可以把配置文件設置為:$cfg['Servers'][$i]['port'] = ’3308′;