title: Can't connect to database (10061)
body: <p>I have a Raspberry Pi (first model) I use as a server. I followed a tutorial and installed Apache2, MySQL, Phpmyadmin etc.</p>
  
  <p>I have also set up a ddns for my home network to be able to connect to it wherever I am, and of course forwarded the necessary ports.</p>
  
  <p>At first everything worked wonders. </p>
  
  <ul>
  <li>I could connect to the database using phpmyadmin by navigating to <code>adress/phpmyadmin</code>from any network.</li>
  <li>I could also use HeidiSQL to connect to the database, again from any network.</li>
  </ul>
  
  <p>The MySQL version I had at this time was v5.5. I wanted a feature available on v5.6 but this version was not available on my RPi (ARMv61). Instead it seemed like MariaDB should do the trick. So I updated to MariaDB using the command:</p>
  
  <p><code>sudo aptitude install mariadb-server</code></p>
  
  <p>Now I am not able to connect through HeidiSQL anymore, Phpmyadmin still works though from any network just like previously. Trying to connect with HeidiSQL I get the output (no matter what username/password i try):</p>
  
  <blockquote>
    <p>Can't connect to MySQL server on 'adress' (10061)'</p>
  </blockquote>
  
  <p><code>mysql -V</code> gives output:</p>
  
  <blockquote>
    <p>mysql  Ver 15.1 Distrib 10.0.27-MariaDB, for debian-linux-gnueabihf (armv7l) using readline 5.2</p>
  </blockquote>
  
  <p>My RPi info is</p>
  
  <blockquote>
    <p>Linux redface 4.4.26+ #915 Thu Oct 20 17:02:14 BST 2016 armv6l GNU/Linux</p>
  </blockquote>
  
  <p>The user privileges are available in the image below </p>
  
  <p><a href="https://i.stack.imgur.com/esZoC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/esZoC.png" alt="enter image description here"></a></p>
  
  <p>How can I connect to the database again using HeidiSQL? Have I missed something with the user privileges?</p>
  
  <p>With phpmyadmin I use the username <code>root</code></p>