Hi all,
I want import a file in database and when i do that say me "DBI Error:Can't execute statement: File '\importaredb.txt' not found (Errcode: 2) at D:/Home/Romeo/Projects/alina.com/scripts/psql.pl line 113. "
use romeo;
select *from address;
LOAD DATA LOCAL INFILE '/importaredb.txt'
INTO TABLE address
FIELDS TERMINATED BY ','
LINES TERMINATED BY '\n'
(orasul, strada, blocul);
What the message is saying is that the file "/importaredb.txt" doesn't exist. Does it exist? Remember the word LOCAL says that the file is located on the client machine; if you remove LOCAL it must be on the MySQL server.
It's MySQL syntax, meaning that "romeo" becomes the default database for future SQL statements. It's a bit misleading posting this problem in the Perl forum.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.