简体   繁体   中英

What's the difference between mysqlimport and mysql < dbfile.sql

It's basically this - I was used to using mysql < dbfile.sql to restore a database dump created with mysqldump . Then I saw there is mysqlimport , with no reference to the other way. The arguments of both CLIs look similar. So, what's the actual difference? (And is there any)

我的理解是mysqlimport相当于LOAD DATA INFILE ,所以要加载的数据必须是例如CSV格式,而不是mysqldump的常用输出。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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