title: Debian 10 MariaDB 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
body: <p>Good evening Community,</p>
  
  <p>I am in despair because I cannot install MariaDB on Debian10. There are similar Stackoverflow questions but none of them helped to solve my problem.</p>
  
  <p>What I've tried:</p>
  
  <pre><code>$ sudo apt update
  $ sudo apt install mariadb-server
  </code></pre>
  
  <p>So far no errors.</p>
  
  <pre><code>$ sudo mysql_secure_installation
  </code></pre>
  
  <p>Leads to:</p>
  
  <blockquote>
    <p>Enter current password for root (enter for none):
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)<br>
    <a href="https://i.stack.imgur.com/jNzNY.png" rel="noreferrer">systemmd errors</a></p>
  </blockquote>
  
  <p>Searching for the file called "mysqld.sock" doesn't deliver results.</p>
  
  <pre><code>$ cd /etc/init.d/
  $ mysqld_safe
  $ sudo find / -type s | grep mysqld.sock
  </code></pre>
  
  <p>Doesn't deliver any results. It appears that no <code>mysqld.sock</code> file has been created.</p>
  
  <blockquote>
    <p>Stackoverflow: <a href="https://stackoverflow.com/questions/11657829/error-2002-hy000-cant-connect-to-local-mysql-server-through-socket-var-run">ERROR 2002 (HY000): Can&#39;t connect to local MySQL server through socket &#39;/var/run/mysqld/mysqld.sock&#39; (2)</a></p>
  </blockquote>
  
  <p>Can anybody please help me with this problem?</p>
  
  <p>Thanks,</p>
  
  <p>milli727</p>
  
  <hr>