Backup MySQL Amazon RDS

后端 未结 6 1989
遇见更好的自我
遇见更好的自我 2021-02-01 06:16

I am trying to setup Replica outside of AWS and master is running at AWS RDS. And I do not want any downtime at my master. So I setup my slave node and now I want to backup my c

6条回答
  •  南方客
    南方客 (楼主)
    2021-02-01 06:28

    Either things have changed, since @Michael - sqlbot 's response, or there is a misunderstanding going on here (could be on my part),

    You can use COPY to import a csv file into rds, at least on the postgres version, you just need to use FROM STDIN instead of directly naming the file,
    which means you end up piping things like:

    cat data.csv | psql postgresql://server:5432/mydb -U user -c "COPY \"mytable\" FROM STDIN DELIMITER ',' "
    

提交回复
热议问题