﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-Such is LIFE-文章分类-Mysql</title><link>http://www.blogjava.net/CarlElit/category/29948.html</link><description>Simple Life</description><language>zh-cn</language><lastBuildDate>Sat, 08 Mar 2008 05:10:17 GMT</lastBuildDate><pubDate>Sat, 08 Mar 2008 05:10:17 GMT</pubDate><ttl>60</ttl><item><title>Enable Foreign Key In mysql5.0</title><link>http://www.blogjava.net/CarlElit/articles/184641.html</link><dc:creator>Carl</dc:creator><author>Carl</author><pubDate>Sat, 08 Mar 2008 02:00:00 GMT</pubDate><guid>http://www.blogjava.net/CarlElit/articles/184641.html</guid><wfw:comment>http://www.blogjava.net/CarlElit/comments/184641.html</wfw:comment><comments>http://www.blogjava.net/CarlElit/articles/184641.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/CarlElit/comments/commentRss/184641.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/CarlElit/services/trackbacks/184641.html</trackback:ping><description><![CDATA[<span style="font-family: Verdana;">According to the default settings, you can not create a foreign key in mysql5.0. Because it requires you to change the type of table to "innoDB". Otherwise you will get this error:<br />
<br />
<strong>the innoDB feature is disable...</strong><br />
<br />
In the Documentation of mysql, it comments that in mysql4.2,5.0 etc you must enable "innoDB" when creating FK. <strong>Just modify my.ini in C:\WINDOWS, find this line "skip-innodb" and change it to "#skip-innodb".</strong><br />
</span><br />
<img src ="http://www.blogjava.net/CarlElit/aggbug/184641.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/CarlElit/" target="_blank">Carl</a> 2008-03-08 10:00 <a href="http://www.blogjava.net/CarlElit/articles/184641.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>