How do I split the output from mysqldump into smaller files?

前端 未结 18 1516
孤城傲影
孤城傲影 2020-11-27 13:50

I need to move entire tables from one MySQL database to another. I don\'t have full access to the second one, only phpMyAdmin access. I can only upload (compressed) sql file

18条回答
  •  情深已故
    2020-11-27 14:22

    A clarification on the answer of @Vérace :

    I specially like the interactive method; you can split a large file in Eclipse. I have tried a 105GB file in Windows successfully:

    Just add the MySQLDumpSplitter library to your project: http://dl.bintray.com/verace/MySQLDumpSplitter/jar/

    Quick note on how to import:

    - In Eclipse, Right click on your project --> Import
    - Select "File System" and then "Next"
    - Browse the path of the jar file and press "Ok"
    - Select (thick) the "MySQLDumpSplitter.jar" file and then "Finish"
    - It will be added to your project and shown in the project folder in Package Explorer in Eclipse
    - Double click on the jar file in Eclipse (in Package Explorer)
    - The "MySQL Dump file splitter" window opens which you can specify the address of your dump file and proceed with split.
    

提交回复
热议问题