1. 程式人生 > >mongodb匯出資料匯入mysql

mongodb匯出資料匯入mysql

匯出:mongoexport --port=27000 -d lyric -c lyric --csv -f songName,artistName,content -o lyric_e_1.csv


匯入:先mysql -uroot -p進入mysql控制檯
再mysql> load data infile "E:/lyric_e_2.csv"  into table song_lyric character set
utf8 fields terminated by "," enclosed by "\""  ignore 1 lines;