You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DSWMS/开发版dev/Vue.NetCore/DB/mysql/mysql批量日志写入失败.txt

8 lines
371 B
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

1、mysql日志批量写入失败提示:The used command is not allowed with this MySQL version
解决办法:在数据库中执行:set global local_infile = 'ON';
2、日志批量写入数据时出错:To use MySq1Bu1kLoader. Loca1=true, set AllowLoadLocalInfile =true in the connection string.
解决办法在后台项目appsettings.json中找到mysql数据库链接配置中添加AllowLoadLocalInfile =true