Latest News

Home » 網路資源匯集 » 在升級 PHPMyAdmin 時遇到中文字會出現亂碼的問題解決方法(基本設定)

在升級 PHPMyAdmin 時遇到中文字會出現亂碼的問題解決方法(基本設定)

phpMyAdmin 2.7.0(含)以上版本 中文顯示亂碼問題解決(基本設定)

在升級 PHPMyAdmin 時遇到中文字會出現亂碼的問題解決方法,分享一下如何修改。
設定檔名區別:

config.ini.php v 2.6.0 之前的名稱

config.default.php v 2.6.0(含) 之後的名稱

應更改事項:
$cfg['PmaAbsoluteUri'] = ''; -> $cfg['PmaAbsoluteUri'] = '
http://xxx.xxx.xxx.xxx/PHPMyAdmin/'; phpmyadmin 位置
$cfg['Servers'][$i]['auth_type'] = 'config'; -> $cfg['Servers'][$i]['auth_type'] = ' http'; http 認証
oth:
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address 把localhost改成你的MySQL主機位置, 也就是 DB Hostname
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';   // MySQL user 把root改成你的MySQL資料庫的使用者名稱, 也就是 DB Username
$cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed 在''中間填入你的MySQL資料庫的密碼, 也就是 DB Password
問題:
MySQL資料庫的內容顯示亂碼問題
解決方式:
select_lang.lib.php 這個檔案內容
'big5' => 'big5', 更改 'big5' => 'latin1',
'utf-8' => 'utf-8', 更改 'utf-8' => ' latin1',

About

發佈留言