免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 975 | 回复: 0
打印 上一主题 下一主题

phpMyAdmin 2.7.0(含)以上版本 中文顯示亂碼問題解決 + 基本設定 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-06 21:07 |只看该作者 |倒序浏览

http://bbs.ecstart.com/viewthread.php?tid=14013&extra=page%3D1

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',

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/12857/showart_272388.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP