简体   繁体   English

LOAD DATA LOCAL INFILE php mysql

[英]LOAD DATA LOCAL INFILE php mysql

I am getting error 我收到了错误

#7890 - Can't find file 'C:UsersAdminDesktopBL postcodes.csv.zip'.

here is the script 这是脚本

LOAD DATA LOCAL INFILE 'C:\Users\Admin\Desktop\BL postcodes.csv.zip' 
IGNORE INTO TABLE uk_pc 
FIELDS TERMINATED BY ',' 
LINES TERMINATED BY '\n' 
(Postcode, Latitude, Longitude, Easting, Northing, GridRef, County, District, Ward, DistrictCode, WardCode, Country, CountyCode)

i have tried to change folders and change permission also but same error ... (working on localhost server) 我试图更改文件夹和更改权限但同样的错误...(在localhost服务器上工作)

'C:UsersAdminDesktopBL postcodes.csv.zip' path has to be wrong because it doesn't have traling slashes. 'C:UsersAdminDesktopBL postcodes.csv.zip'路径必须是错误的,因为它没有traling斜杠。 try: INFILE 'C:\\\\Users\\\\Admin\\\\Desktop\\\\BL postcodes.csv.zip' 尝试:INFILE'C 'C:\\\\Users\\\\Admin\\\\Desktop\\\\BL postcodes.csv.zip'

And try with unpacked file. 并尝试解压缩文件。

use local infile like below: 使用如下的本地infile:

load data local infile 'C:\\Users\\Admin\\Desktop\\' into table user 将数据本地infile'C:\\ Users \\ Admin \\ Desktop \\'加载到表用户

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM