I am trying to export mysql table data into CSV file using mysqldump command and getting below error. I have AWS RDS mysql database.
mysqldump: Got error: 1045: Access denied for user 'user1'@'%' (using password: YES) when executing 'SELECT INTO OUTFILE'
below is command i am trying:
mysqldump --tab . -h host1.rds.amazonaws.com -u username1 --password="password" --fields-escaped-by=\\ --fields-terminated-by=, db_name table_name > data.csv