导入文件, 导出文件
? mysqldump -u xxx -pxxx database_name > file ? mysqldump -u xxx -pxxx database_name table_name1, table_name2 > file
out to file
select * into outfile ‘file‘ fields terminated by ‘\t‘ enclosed by ‘|‘ lines terminated by ‘\n‘ started by ‘start‘ from table_name;
in from file
load data infile ‘file‘ fields terminated by ‘\t‘ enclosed by ‘|‘ lines terminated by ‘\n‘ started by ‘start‘ into xxx
mysql> source file.sql