Jump to content

Can't Get Stat Error w/ PHP and MYSQL


wrekanyze

Recommended Posts

$sql = "LOAD DATA INFILE '/usr/xxxxl/xxxxxxx/xxx.xxx.xxx/blah.tab' INTO TABLE data";

mysql_query($sql);

 

Ok, so I'm using this method to import my tab delimited file into my database to insert a bunch of users.  It worked on my coworker's computer, but will not work on mine.  I get:

#13 - Can't get stat of '/usr/xxxxl/xxxxxxx/xxx.xxx.xxx/blah.tab' (Errcode: 2)

 

Before you help me out, I know #13 refers to a file permissions problem.  I went through and made all of the folders leading up to and including, 777 permissions through SSH client.  They all stuck, I double checked in FTP client.  I even created a new folder in the root and gave it all permissions, 777, and added the file there.  Still no help.  I added the file to the MYSQL directory and that did not work either.  I've searched google and looked through about 20 pages of results, with not set answer.  If you can help me, you'll be my hero lol.  It's just mind boggling that it worked on another computer, but isn't working here.  I have the same privileges as my coworker.

 

Any help is greatly appreciated.

Link to comment
https://forums.phpfreaks.com/topic/52028-cant-get-stat-error-w-php-and-mysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.