我在Windows中将一个java项目导出为jar,并将jar上传到linux服务器。在执行jar时,我看到“C:”被附加在文件路径的开头。这是日志:
Query : LOAD data infile "/home/user/java_correlation_engine/CorrelationFiles/temp.txt" ignore into table logical_mapping fields terminated by '|' lines terminated by '\n'
java.sql.SQLException: File 'C:\home\user\java_correlation_engine\CorrelationFiles\temp.txt' not found (Errcode: 2 - No such file or directory)
查询看起来完全是我想要的,但它会抛出SQLException。