Why remove django DATABASE_OPTIONS's “init_command set engine=INNODB” after table creation?

后端 未结 4 634
孤街浪徒
孤街浪徒 2021-01-02 03:37

Docs on creating your database tables says:

Another option is to use the init_command option for MySQLdb prior to creating your tables:

DATABASE_OPTI         


        
4条回答
  •  北荒
    北荒 (楼主)
    2021-01-02 04:20

    If you have other options, eg:

    DATABASE_OPTIONS = { "init_command": "SET storage_engine=INNODB, wait_timeout = 30, time_zone =... ", }

    then it doesn't hurt to leave the default storage engine set.

提交回复
热议问题