0

Possible Duplicate:
how to import from MS excel into MYSQL DB

I wish to import some data from excel to mysql database. my query is

LOAD DATA LOCAL INFILE 'd:/Book1.csv' INTO TABLE exp FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n';

I receive an error File 'd:/Book1.csv' not found. Is there anything i want to do.

Community
  • 1
  • 1
Yeswanth
  • 171
  • 1
  • 2
  • 6
  • This utility is the easiest way to go... http://panofish.net/convert-import-excel-spreadsheets-into-mysql-database/ – panofish Oct 10 '13 at 17:04

1 Answers1

0

There is a good tool for this called RazorSQL.

That's what I use to import data to my database, I'm not sure if it supports a mysql database, but I think it does.

Well, this is a good way to do it if you don't want to do it at runtime with code.

Tjekkles

Tjekkles
  • 5,352
  • 8
  • 36
  • 53