Home  >  Q&A  >  body text

mysql - How does phpmyadmin export data in sections?

My database has 1.9G, how can I export a file of 100M in batches

大家讲道理大家讲道理2705 days ago1024

reply all(4)I'll reply

  • 某草草

    某草草2017-05-24 11:36:42

    Set the number of rows exported each time, such as id1 to id10000

    reply
    0
  • 某草草

    某草草2017-05-24 11:36:42

    What, mysql migration. If the version is high enough, just copy and paste the physical files.

    reply
    0
  • PHPz

    PHPz2017-05-24 11:36:42

    tar czf <Database file directory>|split -b 100m -d -x 1 <Package name>.

    reply
    0
  • 某草草

    某草草2017-05-24 11:36:42

    If you just want to back up to other machines, just rsync. My MySQL is now built in a docker container. When working as a master and slave, I can directly rsync to other machines, which is very fast.

    reply
    0
  • Cancelreply