[教學] MySQL4.1.x & phpMyAdmin- 2.11.9.5
發表於 : 2005-07-21 11:08
Linux Fedora-core4 的MySQL 版本可升級為4.1.11
但是! 安裝phpMyAdmin 後 卻出現只能選擇 UTF-8 編碼,導致無法利用 phpMyAdmin 查看 Big5 中文編碼(不用 Big5 觀看~會產生亂碼 )
小弟的修改方法為:
◎ 修改 /libraries/database_interface.lib.php
找到
修改為
找到
修改為
就是把
if (PMA_MYSQL_INT_VERSION >= 40100) {
..
.
. ( 這中間的都註解起來 )
.
.
// Add some field types to the list, this needs to be done once per session!
這樣一來就可以 選擇 Big5 來觀看 Big5 編碼的資料庫了
但是! 安裝phpMyAdmin 後 卻出現只能選擇 UTF-8 編碼,導致無法利用 phpMyAdmin 查看 Big5 中文編碼(不用 Big5 觀看~會產生亂碼 )
小弟的修改方法為:
◎ 修改 /libraries/database_interface.lib.php
找到
代碼: 選擇全部
if (PMA_MYSQL_INT_VERSION >= 40100) {
// If $lang is defined and we are on MySQL >= 4.1.x,
代碼: 選擇全部
if (PMA_MYSQL_INT_VERSION >= 40100) {
/** // If $lang is defined and we are on MySQL >= 4.1.x,
代碼: 選擇全部
}
// Add some field types to the list, this needs to be done once per session!
代碼: 選擇全部
}**/
// Add some field types to the list, this needs to be done once per session!
if (PMA_MYSQL_INT_VERSION >= 40100) {
..
.
. ( 這中間的都註解起來 )
.
.
// Add some field types to the list, this needs to be done once per session!
這樣一來就可以 選擇 Big5 來觀看 Big5 編碼的資料庫了