title: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Ubuntu 20.04
body: <p>I want to start <code>mysql</code> but it doesn't work.</p>
  <blockquote>
  <p>furnaxe@furnaxe-Inspiron-5593:~$ sudo mysql ERROR 2002 (HY000): Can't
  connect to local MySQL server through socket
  '/var/run/mysqld/mysqld.sock' (2)</p>
  </blockquote>
  <p>And this is journaltcl -xe :</p>
  <pre><code>-- 
  -- L'unité (unit) mysql.service a terminé son arrêt.
  févr. 05 12:06:43 furnaxe-Inspiron-5593 systemd[1]: mysql.service: Start request repeated too quickl&gt;
  févr. 05 12:06:43 furnaxe-Inspiron-5593 systemd[1]: mysql.service: Failed with result 'exit-code'.
  -- Subject: Unit failed
  -- Defined-By: systemd
  -- Support: http://www.ubuntu.com/support
  -- 
  -- The unit mysql.service has entered the 'failed' state with result 'exit-code'.
  févr. 05 12:06:43 furnaxe-Inspiron-5593 systemd[1]: Failed to start MySQL Community Server.
  -- Subject: L'unité (unit) mysql.service a échoué
  -- Defined-By: systemd
  -- Support: http://www.ubuntu.com/support
  -- 
  -- L'unité (unit) mysql.service a échoué, avec le résultat failed.
  févr. 05 12:07:17 furnaxe-Inspiron-5593 /usr/lib/gdm3/gdm-x-session[1708]: (EE) event9  - DELL097C:0&gt;
  févr. 05 12:07:17 furnaxe-Inspiron-5593 /usr/lib/gdm3/gdm-x-session[1708]: See https://wayland.freed&gt;
  </code></pre>
  <p>I think I have some missing packages.
  Then:</p>
  <pre><code>furnaxe@furnaxe-Inspiron-5593:~$ systemctl status mysql.service
  ● mysql.service - MySQL Community Server
       Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
      Drop-In: /etc/systemd/system/mysql.service.d
               └─override.conf
       Active: failed (Result: exit-code) since Fri 2021-02-05 12:06:43 CET; 10min ago
      Process: 20009 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=1/FAIL&gt;
  
  févr. 05 12:06:43 furnaxe-Inspiron-5593 systemd[1]: mysql.service: Scheduled restart job, restart co&gt;
  févr. 05 12:06:43 furnaxe-Inspiron-5593 systemd[1]: Stopped MySQL Community Server.
  févr. 05 12:06:43 furnaxe-Inspiron-5593 systemd[1]: mysql.service: Start request repeated too quickl&gt;
  févr. 05 12:06:43 furnaxe-Inspiron-5593 systemd[1]: mysql.service: Failed with result 'exit-code'.
  févr. 05 12:06:43 furnaxe-Inspiron-5593 systemd[1]: Failed to start MySQL Community Server.
  </code></pre>
  <p>I already tried to uninstall mysql and reinstall it with the <code>sudo apt purge mysql*</code> and <code>sudo rm -r /etc/mysql</code> and <code>sudo rm -r /usr/share/mysql</code>.</p>
  <p>How can I fix this problem?</p>