php - How to take backup of amazon database(mysql) -
i want take backup of database amazon using linux command . trying
mysqldump --databases mydbname -v -h xxxxx.xxxxxx.us-west-2.rds.amazonaws.com -u username -p 3306 -p > mydbname.sql
but gives error
mysqldump: got error: 1045: access denied user 'username'@'125.94.62.234' (using password: yes) when trying connect
please me out
first of need add ip address in aws security group
you can check ip address type in google "what ip".
to add in aws - need login in aws site
goto ec2 services goto - security groups under network / security
check used security group , click inbound rule
add new rule select mysql aurora / tcp / 3306 / custom ip / ip address.
after doing can use below command
mysqldump -u -p -h databasename > backup.sql
hope can you
Comments
Post a Comment