在将xlsx数据通过datagrep导入到mysql数据库表中之前需要将xlsx数据导出为csv结尾的格式,因为如果不以csv格式导入会出现乱码。

详细步骤
1、是导入到数据库中没有表
找到对应的数据库,右键点击

选择需要导入的文件,注意一定要选择csv格式的数据

然后根据自己需求更改数据(注意,一般表中的列名跟xlsx中的列名相同)

点击import就成功了。
2、是导入到数据库中已经有的表
其实跟上面那种情况操作差不多,区别在于首先是找到对应的表,然后右键点击

后面操作都是一样的。
如果能够在对应的表中查到导入的数据就说明导入成功了。
最后祝愿大家每天上班开心。