首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

Hibernate配置文件三拇指定MySQL数据库的编码方式

2012-09-23 
Hibernate配置文件中指定MySQL数据库的编码方式具体的设置如下: my.ini 中:客户端的:[client]port3306[my

Hibernate配置文件中指定MySQL数据库的编码方式


具体的设置如下:
my.ini 中:

客户端的:

[client]

port=3306

[mysql]

default-character-set=gbk


服务端的:

[mysqld]

# The default character set that will be used when a new schema or table is
# created and no character set is defined
default-character-set=utf8 3 楼 Ashfrog 2010-10-12   非常有用的解决方案···
谢谢博主···

热点排行