简体   繁体   English

如何导入没有在MyISAM中指定引擎的mysqldump

[英]how import a mysqldump without ENGINE specified in MyISAM

all my sqldumps are without the "Engine=..." syntax in the CREATE Statements, so maybe i can somehow add "ENGINE=MyISAM" to the default import? 我所有的sqldumps在CREATE语句中都没有“ Engine = ...”语法,所以也许我可以以某种方式将“ ENGINE = MyISAM”添加到默认导入中?

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 因为在我的带有mysql 5.5的ubuntu 12.04服务器上,导入大表非常慢,因为在我刚导入表时它正在使用标准的InnoDB

or can i set a settings flag in mysql, that new tables created are MyIsam as default? 或者我可以在mysql中设置设置标志,即创建的新表是MyIsam作为默认表吗?

要将默认引擎设置为MyISAM,请在my.cnf使用以下配置选项:

default-storage-engine=MyISAM

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, 您可以使用--default-storage-engine服务器启动选项指定默认引擎,

  2. change the config file 更改配置文件

    or by setting the default-storage-engine option in the my.cnf configuration file. 或通过在my.cnf配置文件中设置default-storage-engine选项。

  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 您可以通过设置default_storage_engine变量来设置当前会话期间要使用的默认存储引擎

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM