mysql建立UTF8数据库

Posted on 2009-06-11 20:10 Charleehu 阅读(73) 评论(0)  编辑  收藏
CREATE TABLE IF NOT EXISTS test(
    test_id int auto_increment,
    test_name varchar(50)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;

create database if not exists test default character set utf8;

dao.drivername=com.mysql.jdbc.Driver
dao.url=jdbc:mysql://localhost:3306/asking?useUnicode=true&characterEncoding=UTF-8
dao.username=
dao.passwd=


只有注册用户登录后才能发表评论。


网站导航: