GNOME Bugzilla – Bug 624934
manage.py syncdb barfs when the default table type is innodb
Last modified: 2010-07-21 20:53:02 UTC
[jschroeder@snowy snowy]$ grep ^default-storage-engine /etc/my.cnf default-storage-engine=InnoDB [jschroeder@snowy snowy]$ ./manage.py syncdb Syncing... Creating table django_openid_auth_useropenid Traceback (most recent call last):
+ Trace 222949
execute_manager(settings)
utility.execute()
self.fetch_command(subcommand).run_from_argv(self.argv)
self.execute(*args, **options.__dict__)
output = self.handle(*args, **options)
return self.handle_noargs(**options)
syncdb.Command().execute(**options)
cursor.execute(statement)
return self.cursor.execute(sql, params)
return self.cursor.execute(query, args)
self.errorhandler(self, exc, value)
raise errorclass, errorvalue
ectly I tried to force the table type to MyISAM via: DATABASE_OPTIONS = { "init_command": "SET storage_engine=MYISAM", } It didn't seem to help any unfortunately.
Let's apply the fix from here: https://code.launchpad.net/~wligtenberg/django-openid-auth/mysql_fix/+merge/22726 We'll wait for bug reports on not accepting long URLs before worrying about the consequences.
Fix applied, feel free to re-open if there are other incompatibilities with mysql, or if we should modify the fix.