Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[1.4.X] Fixed #18256 - Added a potential pitfall when upgrading to My…

…SQL 5.5.5

Backport of c870cb4 from master
  • Loading branch information...
1 parent 8139a79 commit e2dea54efe53fbeb66e684973ed6ad05f63969cc @timgraham timgraham committed
Showing with 10 additions and 0 deletions.
  1. +10 −0 docs/ref/databases.txt
10 docs/ref/databases.txt
@@ -165,6 +165,16 @@ Since MySQL 5.5.5, the default storage engine is InnoDB_. This engine is fully
transactional and supports foreign key references. It's probably the best
choice at this point.
+If you upgrade an existing project to MySQL 5.5.5 and subsequently add some
+tables, ensure that your tables are using the same storage engine (i.e. MyISAM
+vs. InnoDB). Specifically, if tables that have a ``ForeignKey`` between them
+use different storage engines, you may see an error like the following when
+running ``syncdb``::
+ _mysql_exceptions.OperationalError: (
+ 1005, "Can't create table '\\db_name\\.#sql-4a8_ab' (errno: 150)"
+ )
.. versionchanged:: 1.4
In previous versions of Django, fixtures with forward references (i.e.

0 comments on commit e2dea54

Please sign in to comment.
Something went wrong with that request. Please try again.