As stated in the description, you will probably be better off working with your EC2 → RDS instances. If you really want to work from your local machine, though:
Try the following on the command line. You can also use powershell, but you will need to wrap this statement in cmd /c "mysql etc..." because powershell handles the redirection a little differently.
mysql -u myUser --password = myPass -h rdsEndpoint myDB <C: \ Users \ guru \ Downloads \ latest.sql
This procedure will also be useful if you need an instance of Windows EC2.
Aside: retrieving data from RDS to your local computer can become expensive, especially as your database grows. If you just do it as a backup solution, you can watch snapshots or automatic backups. If you do this to replicate your RDS environment, you can also transfer your data directly from RDS to your EC2 instances, which is free if both instances are in the same zone availability .
source share