A data dump is a file containing exported database structure and data that can be restored or imported. It transfers an existing database into a new environment, such as Amazon RDS. section 10.2
Use a dump to move a database into RDS:
- Export the source database with a database-specific tool such as mysqldump. section 10.2
- Run a virtual machine in the same AWS Region and VPC as the RDS database. section 10.2
- Upload the dump to the virtual machine, then import it into RDS with the database client. section 10.2
$ mysqldump -u $UserName -p --all-databases > dump.sql
Export all databases, a selected database, or a network-connected database with mysqldump. section 10.2
