LPCTSTR lpszHttpdown = _T("./NetCenter_Cache/FileCahce_HttpDown.Dat");我使用的相对路径的文件
有的时候插入成功,有的时候会提示我
Can't get stat of '/usr/local/mysql/var/NetCenter_Cache/FileCahce_HttpDown.Dat' (Errcode: 2),内容:
LOAD DATA INFILE './NetCenter_Cache/FileCahce_HttpDown.Dat' INTO TABLE `data_httpdown_2013-07-24` (`probe_id`,`src_mac`,`dst_mac`,`src_ip`,`dst_ip`,`src_name`,`dst_name`,`dst_equip_type`,`dst_app_id`,`ip_version`,`ip_tunnel`,`src_port`,`dst_port`,`proto_type`,`proto_sub_type`,`operation`,`log_type`,`log_level`,`opstatus`,`rule_id`,`group_id`,`rulekeyword`,`domain`,`url`,`summary`,`content`,`file_name`,`log_time`,`str_time`)我是用的ROOT权限运行的这个程序,这几个文件都是通过我的程序来创建的,怎么解决呢?
有的时候插入成功,有的时候会提示我
Can't get stat of '/usr/local/mysql/var/NetCenter_Cache/FileCahce_HttpDown.Dat' (Errcode: 2),内容:
LOAD DATA INFILE './NetCenter_Cache/FileCahce_HttpDown.Dat' INTO TABLE `data_httpdown_2013-07-24` (`probe_id`,`src_mac`,`dst_mac`,`src_ip`,`dst_ip`,`src_name`,`dst_name`,`dst_equip_type`,`dst_app_id`,`ip_version`,`ip_tunnel`,`src_port`,`dst_port`,`proto_type`,`proto_sub_type`,`operation`,`log_type`,`log_level`,`opstatus`,`rule_id`,`group_id`,`rulekeyword`,`domain`,`url`,`summary`,`content`,`file_name`,`log_time`,`str_time`)我是用的ROOT权限运行的这个程序,这几个文件都是通过我的程序来创建的,怎么解决呢?
/usr/local/netaudit/NetCenter_Service/NetCenter_Release/NetCenter_Cache 这个目录下才对
为什么会变成/usr/local/mysql/var/NetCenter_Cache/ 这个目录呢?
load data LOCAL infile 试试
数据库执行错误:The used command is not allowed with this MySQL version,内容:
LOAD DATA LOCAL INFILE './NetCenter_Cache/FileCahce_HttpDown.Dat' INTO TABLE `data_httpdown_2013-07-24` (`probe_id`,`src_mac`,`dst_mac`,`src_ip`,`dst_ip`,`src_name`,`dst_name`,`dst_equip_type`,`dst_app_id`,`ip_version`,`ip_tunnel`,`src_port`,`dst_port`,`proto_type`,`proto_sub_type`,`operation`,`log_type`,`log_level`,`opstatus`,`rule_id`,`group_id`,`rulekeyword`,`domain`,`url`,`summary`,`content`,`file_name`,`log_time`,`str_time`)