title: mysql.sock does not exist error in fresh install of MySQL on Arch Linux
body: <p>I'm trying to use <code>MySQL</code> on Arch Linux. it is already installed but this error comes up when I try to connect:</p>
  <pre class="lang-none prettyprint-override"><code>connect to server at 'localhost' failed
  error: 'Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2 &quot;No such file or directory&quot;)'
  </code></pre>
  <p>I've looked for <code>/etc/my.cfg</code> but the file does not exist.
  Something must have gone wrong during the installation.
  How can I &quot;purge&quot; <code>MariaDB</code> and reinstall it?</p>