[url]http://jooben.blog.51cto.com/253727/309467[/url]
一般建模可能都会用到:powerdesigner
但是,在建表的时候,我一直没有找到:
DEFAULT CHARACTER SET
COLLATE
两个选项。因此,想了个方法,点击:工具栏-》database-》edit current DBMS
[img]http://img1.51cto.com/attachment/201005/4/253727_1272955701hCpQ.png[/img]
然后,选中:MYSQL50::Script\Objects\Table\Options
[img]http://img1.51cto.com/attachment/201005/4/253727_1272955703iFVz.png[/img]
在options末尾添加:
[i][color=darkblue]ENGINE = %s : list = BDB | HEAP | ISAM | InnoDB | MERGE | MRG_MYISAM | MYISAM, default = MYISAM
DEFAULT CHARACTER SET = %s : list = utf8 | gbk, default = utf8
COLLATE = %s : list = utf8_bin | utf8_general_ci | gbk_bin | gbk_chinese_ci, default = utf8_bin[/color][/i]
第一个:存储引擎
第二个:字符集
第三个:带bin是区分大小写,ci不区分
点击ok保存,回到工作区,双击某表,在:
Physicial Options中,可以看到刚刚添加的选项,这样就可以按照自己的方式来操作了。
[img]http://img1.51cto.com/attachment/201005/4/253727_12729557042hpe.png[/img]
本文出自 “lee” 博客,请务必保留此出处http://jooben.blog.51cto.com/253727/309467
Replace
TYPE=MyISAM
with
[color=red][b]ENGINE=MyISAM[/b][/color]
The problem was "TYPE=MyISAM" which should be "ENGINE=MyISAM" as per MySQL version updates - a simple search / replace has fix it.
一般建模可能都会用到:powerdesigner
但是,在建表的时候,我一直没有找到:
DEFAULT CHARACTER SET
COLLATE
两个选项。因此,想了个方法,点击:工具栏-》database-》edit current DBMS
[img]http://img1.51cto.com/attachment/201005/4/253727_1272955701hCpQ.png[/img]
然后,选中:MYSQL50::Script\Objects\Table\Options
[img]http://img1.51cto.com/attachment/201005/4/253727_1272955703iFVz.png[/img]
在options末尾添加:
[i][color=darkblue]ENGINE = %s : list = BDB | HEAP | ISAM | InnoDB | MERGE | MRG_MYISAM | MYISAM, default = MYISAM
DEFAULT CHARACTER SET = %s : list = utf8 | gbk, default = utf8
COLLATE = %s : list = utf8_bin | utf8_general_ci | gbk_bin | gbk_chinese_ci, default = utf8_bin[/color][/i]
第一个:存储引擎
第二个:字符集
第三个:带bin是区分大小写,ci不区分
点击ok保存,回到工作区,双击某表,在:
Physicial Options中,可以看到刚刚添加的选项,这样就可以按照自己的方式来操作了。
[img]http://img1.51cto.com/attachment/201005/4/253727_12729557042hpe.png[/img]
本文出自 “lee” 博客,请务必保留此出处http://jooben.blog.51cto.com/253727/309467
Replace
TYPE=MyISAM
with
[color=red][b]ENGINE=MyISAM[/b][/color]
The problem was "TYPE=MyISAM" which should be "ENGINE=MyISAM" as per MySQL version updates - a simple search / replace has fix it.