title: Error 2002 Connection refused on phpmyadmin using Ubuntu and XAMPP
body: <p>I just setup Ubuntu KDE on my chromebook and installed XAMPP, as I started the service using this command
  <code>sudo /opt/lampp/lampp start</code></p>
  
  <p>I receive </p>
  
  <p><code>XAMPP: Starting Apache...ok
  XAMPP: Staring MySQL...ok
  XAMPP: Starting proFTPD...ok</code></p>
  
  <p>However when I access localhost/phpmyadmin it started by giving me this <code>error: #2002 - No such file or directory.</code>
  After googling around a bit I changed the host in config.default.php (which is in /opt/lampp/phpmyadmin/libraries) from localhost to 127.0.0.1, 
  opening the same page again gave me a different error #2002 - Connection refused.</p>
  
  <p>I then googled again and changed config.inc.php (which is in /opt/lampp/phpmyadmin) and added in the password and refreshed but that did not work.
  I also changed the user in the same file from 'root' to my username but that did not work.</p>
  
  <p>lastly I searched for the file 'mysql.socket' and that I found in '/tmp/akonadi-naguib.JHQlko/mysql.socket' and I have edited the pdo_mysql.default_socket in the file php.ini which is in /opt/lampp/etc.</p>
  
  <p>How do I solve this issue?</p>