![](https://img-blog.csdnimg.cn/20190927151026427.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
MySQL
不会像仲夏夜之梦一样轻易消失
Stupid is as stupid does.
展开
-
记录一个通过C++代码向数据库导入文件时遇到的复杂问题
问题描述:使用vs+qt+supermap的一个项目,通过代码往mysql中导入bs.csv文件,导入失败,导入语句如下:std::string sql = " load data infile '" + path + "' ignore into table bs fields terminated by ',' optionally enclosed by '""' lines terminated by '\n' ignore 1 lines(eNodeBID,CellID,Latitude,Lo原创 2020-09-23 18:15:24 · 464 阅读 · 0 评论 -
解决“ 修改secure_file_priv配置后mysql服务无法启动 ”的问题
项目场景:1. 将.csv文件import到数据库里,出错:The MySQL server is running with the --secure-file-priv option so it cannot execute this statement.2. 原因是secure-file-priv设置的为NULL——表示限制mysql 不允许导入或者导出。指令:SHOW VARIABLES LIKE "secure_file_priv"; 可以看当前secure-file-priv值:问题原创 2020-09-10 11:43:40 · 1958 阅读 · 7 评论