Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.