1.准备本地文件(pet.txt)
2.在CMD中启动mysql服务,然后输入以下命令导入(pet.txt)
load data local infile ‘路劲‘ into table pet;
3.查看是否导入成功
select * from pet;