Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting Data in MySQL via file error

Status
Not open for further replies.

whodaman

Programmer
May 23, 2001
60
CA
Hi all, I tried excuting this command in MySQL using myPhpAdmin. I got this error:

Code:
SQL-query :  

LOAD DATA LOCAL INFILE 'C:\\WINNT\\TEMP\\php25CE.tmp' INTO TABLE `data_pprc` FIELDS TERMINATED BY ';' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\n' 

MySQL said: 

The used command is not allowed with this MySQL version

My File looks like this:
Code:
0;0;4;13
0;0;5;13
0;0;6;13
0;0;7;13

My fields are:
Code:
value; pp_row; pp_col; yearMonth

I'm using MySQL 4.0.13. Does this version support adding data as a file? Does anyone know what is wrong?

Thank you in advance.
 
If the datafile resides on the filesystem of the MySQL server, drop the "LOCAL" keyword.

The "LOCAL" optional keyword tells your client software to transfer the data to the server through the MySQL connection.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top