Archive for July, 2010

MySQL: Can’t get stat of

Monday, July 19th, 2010

You try to do:
load data infile ‘/home/you/yourfile.txt’ into table lol (username, foo);
and it says:
ERROR 13 (HY000): Can’t get stat of ‘/home/you/yourfile.txt’ (Errcode: 2)
It’s a permissions problem. Even if you chmdo 777 the file it still won’t work. Move your file to /tmp and try it again:
load data infile ‘/tmp/yourfile.txt’ into table lol (username, [...]


I've left the country and this site is just an archive! Check out my trip blog!