A simple command to export tables from Amazon RDS into a csv file
mysql -uroot -ptest123 --database=test -e "select concat(id,',',login) FROM users" > userdata.csv
This command will simply connect to mysql from terminal using root as username , test123 as password and will concat data of id and login columns as comma separated values from table users and will export it as a csv format file having name userdata.csv
0 Comment(s)