mysql 4.0 iso字型轉到mysql5

tbase發表於2007-06-13

mysql 4.0 iso字型轉到mysql5 utf字型

1

CREATE DATABASE CHARACTER SET 'gbk'

COLLATE 'gbk_chinese_ci';

2

mysql --default-character-set=gbk -uroot -pderbysoft dswitch < dswitch-db-20070613.sql

3

# MySql 4.0

jdbc.driverClassName = org.gjt.mm.mysql.Driver

jdbc.url = jdbc:mysql://localhost/dswitch?useUnicode=true&characterEncoding=utf-8&autoReconnect=true

jdbc.username =

jdbc.password =

hibernate.dialect = net.sf.hibernate.dialect.MySQLDialect

hibernate.show_sql = false

dababase.charset = utf-8

boolean.true.value = 1

boolean.false.value = 0

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/249132/viewspace-918785/,如需轉載,請註明出處,否則將追究法律責任。

相關文章