文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>将msyql设置中文支持

将msyql设置中文支持

时间:2006-08-01  来源:lilinbinglinux

1. 需要把Table的Type设置成为MyISAM而不是InnoDB。
2. 将Charecter设置成为utf8
就象这样:
create table samples (
id int not null auto_increment,
foo varchar(100) not null,
bar text not null,
primary key (id)
) Type=MyISAM CHARACTER SET utf8;

 Class.forName("com.mysql.jdbc.Driver");
Connection con = DriverManager.getConnection("jdbc:mysql://
localhost/test?user=root&password=root&useUnicode=true&characterEncoding=utf8");
相关阅读 更多 +
排行榜 更多 +
公主美妆乐园

公主美妆乐园

休闲益智 下载
网速管家

网速管家

游戏工具 下载
2accouts

2accouts

游戏工具 下载