由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - How to load data into Mysql from txt file?
相关主题
弱问从客户端登陆mysql sever的问题怎么我的load data 命令不行?
MySQL如何快速的load mysqldump出来的文件how to use l"LOAD DATA LOCAL INFILE '/path/pet.txt' INTO TABLE pet"
sqlloaderLoad .cvs to database
请教一个query in mysql请教一个PHP和Mysql的编程问题
Mysql中怎么解决添加大型数据产生的问题mysql里面从csv文件load数据的问题(一行变多行)
怎么自动UPDATEprimary key?
急问:导入XML文件到MySQL数据库another question--怎么delete a row from a table
Linux server, mysql如何用SQL语句判断一个TABLE是否存在?
相关话题的讨论汇总
话题: mysql话题: load话题: data话题: file话题: infile
进入Database版参与讨论
1 (共1页)
j*****k
发帖数: 1
1
I tried to load a text file into an empty table,with "load data local infile
"file.txt" into table tablename", got error 1148:
the used command is not allowed with is MySQL version
My version is 3.23.52 and the manual dose suggests using load data.
Anybody can help?
o***z
发帖数: 133
2
it's disabled by default for security reason
you need to invoke the client with --local-infile=1
mysql --help for more information

【在 j*****k 的大作中提到】
: I tried to load a text file into an empty table,with "load data local infile
: "file.txt" into table tablename", got error 1148:
: the used command is not allowed with is MySQL version
: My version is 3.23.52 and the manual dose suggests using load data.
: Anybody can help?

s**********i
发帖数: 711
3

yes, loading local file is not enabled by default.
can upload to server first then use
load data infile

【在 o***z 的大作中提到】
: it's disabled by default for security reason
: you need to invoke the client with --local-infile=1
: mysql --help for more information

1 (共1页)
进入Database版参与讨论
相关主题
如何用SQL语句判断一个TABLE是否存在?Mysql中怎么解决添加大型数据产生的问题
How to insert image to DB2 ?怎么自动UPDATE
MS SQL Server 2k question急问:导入XML文件到MySQL数据库
如何only update the first occurrence in a tableLinux server, mysql
弱问从客户端登陆mysql sever的问题怎么我的load data 命令不行?
MySQL如何快速的load mysqldump出来的文件how to use l"LOAD DATA LOCAL INFILE '/path/pet.txt' INTO TABLE pet"
sqlloaderLoad .cvs to database
请教一个query in mysql请教一个PHP和Mysql的编程问题
相关话题的讨论汇总
话题: mysql话题: load话题: data话题: file话题: infile