title: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
body: <p>I just formatted my drive and installed MariaDB on Linux Mint 17. </p>
  
  <pre><code>$ mysql --version
  mysql  Ver 15.1 Distrib 10.1.1-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
  </code></pre>
  
  <p>I typed: mysql -u root -p
  gave it my passowrd and got this:</p>
  
  <pre><code>ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
  </code></pre>
  
  <p>I did a search and found mysqld.sock was missing. I've read a lot of posts on this but nothing that's fixed this for me. How do I get mysqld.sock? Do I have to install some MySQL files to get it? If so, will this affect MariaDB?</p>