liveBook · Manning

Mysqldump

As explained in Amazon Web Services in Action, Third Edition: An in-depth guide to AWS

mysqldump is a MySQL command-line utility that exports databases into dump files and can support database transfer workflows.

mysqldump is a MySQL command-line utility that exports databases into SQL dump files for backup or transfer. section 10.2

Use the MySQL client tools to export all databases, one database, or a database reached through a network host. Enter the password when prompted. section 10.2

Common export forms include:

  • Export every database from localhost into dump.sql. section 10.2
  • Export one named database into dump.sql. section 10.2
  • Export a database from a remote host by supplying its hostname or IP address. section 10.2

Moving a database to RDS

Upload the dump to a virtual machine in the same AWS Region and VPC as the RDS instance, then import it from that machine. This avoids the slower transfer caused by higher internet or VPN latency. section 10.2

$ mysqldump -u $UserName -p --all-databases > dump.sql

Shows the command for exporting all databases into dump.sql. section 10.2

How Amazon Web Services in Action, Third Edition: An in-depth guide to AWS covers it

How deep it goes
Defines three export forms and explains their migration placement, but defers detailed tool documentation.
Examples
Uses all-database, single-database, and remote-host exports written to dump.sql.
What it assumes
Assumes MySQL access and possibly installation of the MySQL client, while introducing command-line export syntax.
What you can do after
Build database transfer workflows by exporting SQL dumps and positioning them for import into RDS.
How it connects
Connects database dumps with MySQL, Amazon RDS, virtual machines, Amazon S3, and AWS Database Migration Service.

This explainer was generated by Manning's knowledge graph from the text of Amazon Web Services in Action, Third Edition: An in-depth guide to AWS. The section links point to the parts of the book it draws on.