站内搜索: 请输入搜索关键词

当前页面: 开发资料首页JSP 专题怎么更改mysql的编码?

怎么更改mysql的编码?

摘要: 怎么更改mysql的编码?


rt,
1、用命令行怎么改?
2、用mysql-front怎么改?
3、在my.ini中能不能改,如果可以,怎么改?
每个问题20分


#
# CLIENT SECTION
# ----------------------------------------------------------------------
#
# The following options will be read by MySQL client applications.
# Note that only client applications shipped by MySQL are guaranteed
# to read this section. If you want your own MySQL client program to
# honor these values, you need to specify it as an option during the
# MySQL client library initialization.
#
[client]

port=3306

[mysql]

default-character-set=gb2312 // 这里改一下
以上是针对与已安装的用户来说,如果没安装,可以在安装时选择编码方式


首先进入dos下管理界面 mysql -u root
use 数据库名字
然后输入
set names gbk(你选择的编码);


to chinabh(黑鹰)
======
这是在哪一个文件里?


up



2 mysql-front 似乎没有办法设置的
3 windows是 my.ini添加
default-character-set=gb2312
linux类是 在my.cnf添加
default-character-set=gb2312


↑返回目录
前一篇: 如何把登陆信息放入session中
后一篇: javascript怎么获取一个form里面所有的checkbox元素