导出: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;
导入:先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;