- 博客(2)
- 资源 (4)
- 收藏
- 关注
原创 MYSQL 的 MyISAM 和 InnoDB 的困惑
今天用JPA生成数据表,虽然在Entity上已经配置好了一对多和多对一的关系,总是奇怪不能生成外键索引。后来发现是MySQL的 storage engine 的问题。默认的MyISAM是不支持外键的。只有改成 InnoDB才支持外键修改方法,找到 my.ini(在Linux中是my.cnf) 在里面添加或修改(如果有的话)default-storage-engine = Inn
2010-05-25 18:15:00 862
MYSQL 的 MyISAM 和 InnoDB 的困惑
今天用JPA生成数据表,虽然在Entity上已经配置好了一对多和多对一的关系,总是奇怪不能生成外键索引。 后来发现是MySQL的 storage engine 的问题。 默认的MyISAM是不支持外键的。 只有改成 InnoDB才支持外键 修改方法,找到 my.ini(在Linux中是my.cnf)在里面添加或修改(如果有的话) default-storage-engine = Inno...
2010-05-25 18:15:00 118
Struts2 Design And Programming
2009-05-17
JUnit Recipes
2008-11-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人