i would like to import csv file in mysql database.
my query would be like the following.
query = "LOAD DATA INFILE '"+filename+"' INTO TABLE testtable FIELDS TERMINATED BY ',' (text,price)";
But i got the following error while importing file.
java.sql.SQLException: Access denied for user 'root'@'%' (using password: YES)
for full source code you can see http://www.javalobby.org/java/forums/t53674.html.
Any Help is greatly appriciated.
Thanks.