Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm getting the following error when I run SHOW TABLES query,

mysql> show tables;
ERROR 1018 (HY000): Can't read dir of './list/' (errno: 12)

Can anyone explain me what is causing this ?

My datadir is /opt/data.


share|improve this question
What operating system are you using? What are the permissions for /opt/data ? – blueben Mar 28 '11 at 7:14
@blueben permisson problems would be errno: 13 I think – fab Mar 28 '11 at 7:51
Can you add the output of ls -al /opt/data ? – nickgrim Mar 28 '11 at 9:59

That errno: 12 usually indicates an Out of memory Error.
Check your available Memory.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.