---
title: "powerdesigner12.5添加mysql的字符集支持 "
author: "shmayl"
date: "2010-11-08T12:20:14Z"
tags: []
categories: ["数据库"]
slug: "powerdesigner12-5-mysql"
draft: false
lastmod: "2010-11-08T12:20:14Z"
id: 805489
url: "https://shmayl.iteye.com/blog/805489"
---

一般建模可能都会用到：powerdesigner  
但是，在建表的时候，我一直没有找到：  
DEFAULT CHARACTER SET  
COLLATE  
两个选项。因此，想了个方法，点击：工具栏-》database-》edit current DBMS

![](http://img1.51cto.com/attachment/201005/4/253727_1272955701hCpQ.png)

然后，选中：MYSQL50::Script\\Objects\\Table\\Options

![](http://img1.51cto.com/attachment/201005/4/253727_1272955703iFVz.png)

在options末尾添加：  
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

第一个：存储引擎  
第二个：字符集  
第三个：带bin是区分大小写，ci不区分

点击ok保存，回到工作区，双击某表，在：  
Physicial Options中，可以看到刚刚添加的选项，这样就可以按照自己的方式来操作了。

![](http://img1.51cto.com/attachment/201005/4/253727_12729557042hpe.png)