wrekanyze Posted May 18, 2007 Share Posted May 18, 2007 $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. Quote Link to comment https://forums.phpfreaks.com/topic/52028-cant-get-stat-error-w-php-and-mysql/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.