Export a large MySQL table as multiple smaller files

前端 未结 7 1291
你的背包
你的背包 2020-12-28 09:26

I have a very large MySQL table on my local dev server: over 8 million rows of data. I loaded the table successfully using LOAD DATA INFILE.

I now wish to export thi

相关标签:
7条回答
  • 2020-12-28 10:22

    As an example of the mysqldump approach for a single table

    mysqldump -u root -ppassword yourdb yourtable > table_name.sql
    

    Importing is then as simple as

    mysql -u username -ppassword yourotherdb < table_name.sql
    
    0 讨论(0)
提交回复
热议问题