0

all my sqldumps are without the "Engine=..." syntax in the CREATE Statements, so maybe i can somehow add "ENGINE=MyISAM" to the default import?

because on my ubuntu 12.04 server with mysql 5.5 importing a large table is very slow, because it is using the standard InnoDB when i just import it

or can i set a settings flag in mysql, that new tables created are MyIsam as default?

Radu Murzea
  • 10,724
  • 10
  • 47
  • 69
rubo77
  • 19,527
  • 31
  • 134
  • 226

2 Answers2

3

To set the default engine to MyISAM, use the following configuration option in my.cnf:

default-storage-engine=MyISAM
rid
  • 61,078
  • 31
  • 152
  • 193
1

According to the docs, you can:

  1. start the server with a specified default storage engine:

    You can specify the default engine by using the --default-storage-engine server startup option,

  2. change the config file

    or by setting the default-storage-engine option in the my.cnf configuration file.

  3. change the engine on a session by session basis

    You can set the default storage engine to be used during the current session by setting the default_storage_engine variable

Matt Fenwick
  • 48,199
  • 22
  • 128
  • 192