title: mysql error : ERROR 1018 (HY000): Can't read dir of '.' (errno: 13)
body: <p>when i try to view the databases in mysql i get this error:</p>
  
  <pre><code>ERROR 1018 (HY000): Can't read dir of '.' (errno: 13)
  </code></pre>
  
  <p>And that stops my app from displaying...</p>
  
  <p>My django debugger says:</p>
  
  <pre><code>(2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/my_database' (13)")
  </code></pre>
  
  <p>Here is my settings file :</p>
  
  <pre><code>DATABASES = {
  'default': {
      'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
      'NAME': 'my_database',                      # Or path to database file if using sqlite3.
      'USER': 'root',                      # Not used with sqlite3.
      'PASSWORD': '****',                  # Not used with sqlite3.
      'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
      'PORT': '3306',                      # Set to empty string for default. Not used with sqlite3.
  </code></pre>
  
  <p>What can cause the problem?</p>
  
  <p>Thanks in advance</p>