Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create local copy of Amazon RDS Database

How do I mysqldump the database on my AWS RDS instance to a .sql file for local use?

like image 990
CaptainStiggz Avatar asked Aug 26 '12 21:08

CaptainStiggz


2 Answers

This is easy:

mysqldump -H <RDS_URL> -u <user> -p<password> <db> > myfile.sql

As long as you add the -H with proper user / password credentials, you'll have no problem.

like image 120
Christopher Avatar answered Nov 13 '22 08:11

Christopher


Or you can use a client like MySQL Work Bench to open it remotely and export it to .sql anytime you feel like.

http://www.mysql.com/products/workbench/

like image 24
foxybagga Avatar answered Nov 13 '22 08:11

foxybagga