Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 where is tmp/

Author  Topic 

nhatto
Starting Member

2 Posts

Posted - 2009-11-12 : 16:45:20
trying to import a csv file to an sql database.

the file is located on the server, but i dont know how to point to that location

my code is :
LOAD DATA LOCAL INFILE '/tmp/phpQF37Dj' INTO TABLE [...] LINES TERMINATED BY '\r\n'# Affected rows: 301508 


where is /tmp/phpQF37Dj on the server?
and how i replace it with another path?
i tried /home/file.csv
i tried other things too.. but non worked.

I am only using cpanel and an ftp program

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-11-12 : 19:18:19
Looks like you aren't using Microsoft SQL Server, which is what SQLTeam specializes in. For better help, you should post your question in a forum that specializes in whatever dbms you are using.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -