title: Installing MySQL in Docker fails with error message "Can't connect to local MySQL server through socket"
body: <p>I'm trying to install mysql inside a docker container,Tried various images from github, it seems they all manage to successfully install the mysql but when I try to run the mysql it gives an error:</p>
  
  <blockquote>
    <p>ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'</p>
  </blockquote>
  
  <p>System specifications:</p>
  
  <ul>
  <li>Ubuntu 12,04 its on AWS</li>
  <li>Docker 0.10.0</li>
  </ul>
  
  <p>Packages I tried so far:</p>
  
  <ul>
  <li><a href="https://github.com/eugeneware/docker-wordpress-nginx" rel="noreferrer">https://github.com/eugeneware/docker-wordpress-nginx</a></li>
  <li><a href="https://github.com/tutumcloud/tutum-docker-mysql" rel="noreferrer">https://github.com/tutumcloud/tutum-docker-mysql</a></li>
  </ul>