title: mysql - problems with connect and use database
body: <p>When I connect to mysql sql db I get 2 errors:</p>
  
  <pre><code>ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 104
  </code></pre>
  
  <p>or</p>
  
  <pre><code>ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)
  </code></pre>
  
  <p>Sometimes I get first one, and sometimes second one. Sometimes mysql throws this error when I try to conect to db("mysql -u root -p[PASS]") and sometimes I can connect, but after that when I try type "use somedb" or "show tables" mysql throws one of this errors.</p>