Showing posts with label MySQL. Show all posts
Showing posts with label MySQL. Show all posts

Friday, June 29, 2007

Django MySQL with InnoDB Tables

If you are using MySQL and want Django to create InnoDB tables on `syncdb`, use the following in your settings file:

DATABASE_ENGINE = 'mysql'
DATABASE_OPTIONS = {"init_command": "SET storage_engine=INNODB"}


This works on trunk, and isn't documented very well.