【求助】Dreamhost 的MySQL的中文變成亂碼



贊助商連結


頁 : [1] 2 3

pcboy
2005-10-13, 09:02 AM
小弟在 Dreamhost 上架設了 phpBB2
但是發現 Dreamhost 使用 UTF-8
所以 phpMyAdmin 看到 MySQL 資料庫中的中文變成亂碼

如果是小弟自己掌管的 Fedora Core
小弟都是將 /etc/httpd/conf/httpd.conf 中
AddDefaultCharset UTF-8 改為
AddDefaultCharset Big5

但是 Dreamhost 是租用空間, 無法這樣動手腳
請問大家如何修改 MySQL 設定 ?

贊助商連結


阿 土
2005-10-13, 09:11 AM
參考一下 : phpMyAdmin 開啟 UTF-8 編碼相關功能
http://www.neo.com.tw/archives/000250.html

pcboy
2005-10-14, 09:18 AM
抱歉, 沒有幫助

http://www.dreamhost.com/ 是出租空間, 很多事情你不能做

phpMyAdmin 小弟嘗試將 table , field , 連線 都改成 Big5 , 儲存的都是 UTF-8, 在 phpMyAdmin 下是亂碼 ( 在 瀏覽器 看到的是正常繁體中文)

小弟希望 phpMyAdmin 可以看到 資料庫中的資料是 繁體中文

Jungche
2005-10-17, 10:58 PM
這個可能對您有幫助(http://www.neo.com.tw/archives/000557.html),順便問您一下,要如何進入Dreamhost的phpMyAdmin呢?我也是用這個空間的,可是找不到如何進入phpMyAdmin,還是它的phpMyAdmin要自行安裝呢?

sea0964
2005-10-18, 01:14 AM
要進phpmyadmin的話直接輸入你設定的database domain name就可以了

pcboy
2005-10-18, 07:21 AM
https://panel.dreamhost.com/

登入後, 點選左邊 Goodies 區的 MySQL

中間後半會列出有哪些資料庫, 例如
[email protected]

其中 def.ghi.com 是可以點選的超連結,
然後輸入 DB Username 和 DB Password 就可以到 phpMyAdmin 管理畫面

pcboy
2005-10-18, 07:34 AM
看了一下
http://www.neo.com.tw/archives/000557.html

幾個疑問請教

mysql -u neo -p -h mt.neo.com.tw mt

1. 這種命令必須在 console 上才能執行
DreamHost 有提供使用者這種模式 ?

是使用 putty 連上嗎 ? 怎麼連 ?

2. 您說 MySQL 4.1 的資料編碼已經不再支援 Big5

小弟認為是支援的, 因為不論是 MS-Windows 或 Linux 平台
小弟自己管理的主機, 都可以在 phpMyAdmin 下看到正常的繁體中文字
但是目前 DreamHost 小弟做不到


http://www.neo.com.tw/archives/000558.html

> 資料庫使用 MySQL 4.1 + phpMyAdmin 2.6.0 以上都會有這種問題,本來昨天想直接改 phpMyAdmin 的原始碼,不過因為手邊有個案子趕交件,所以先改用 phpMyAdmin 2.5.7 就可以暫時解決亂碼的問題。

小弟自己管理的主機, 資料庫使用 MySQL 4.1 + phpMyAdmin 2.6.0 以上
或使用 phpMyAdmin 2.5.7, 都可以正常看到繁體中文

higene
2005-10-19, 02:22 AM
我也有這種問題...>.<
今天寄了mail過去...剛剛收到回信嚕...=.=+

Hello,

In order to support the Chinese traditional words in a Mysql database you will need to make sure php is compiled with the MBstring module. Dreamhost doent have the module installed with the version of PHP that we run. You will need to compile your own local version of PHP and make sure this module is added. You can learn how to compile your own local version
here:

http://wiki.dreamhost.com/index.php/Installing_PHP5

higene
2005-10-19, 05:50 PM
剛剛想了一下...繁中無法顯示應該跟php沒關係....=.=
是自己跑去試了一下
Dreamhost 使用 UTF-8 沒錯...
主要是他增加SQL語法時...MySQL連線校對有時候並不是UTF-8....>.<
我的方法是把個別需要校對用的編碼都改成UTF-8....就OK嚕~~~^Q^
http://www.pczone.com.tw/upload/123.gif
http://www.pczone.com.tw/upload/44622544.gif
提供一下我的方法...希望有用...O.Q

pcboy
2005-10-19, 09:08 PM
這樣是可以看到, 但是會改到累死
要每個 Table , 每個欄位去修正