例如需要导入敏感词库,https://github.com/SugarPPig/files/blob/main/SensitiveWord.txt,其中有大量的中文词汇,所以需要注意字符集。
1、新建表,字符集选择 utf8
2、执行命令
load data local infile "C:/Users/1024/Desktop/SensitiveWord.txt" into table SensitiveWord character set utf8;
部分效果:
例如需要导入敏感词库,https://github.com/SugarPPig/files/blob/main/SensitiveWord.txt,其中有大量的中文词汇,所以需要注意字符集。
1、新建表,字符集选择 utf8
2、执行命令
load data local infile "C:/Users/1024/Desktop/SensitiveWord.txt" into table SensitiveWord character set utf8;
部分效果: