ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2) with MariaDB & MySQL

Well then, in my case it’s probably a consequence of using a symlink to a file in my home directory instead of an actual /etc/my.conf file. I like to have all my config files in one place under my home folder, so I can reuse everything on re-installs. Same with the database files.
However the mariadb.service file I can confirm it sometimes gets overwritten by updates (that one I haven’t symlinked).

1 Like