I’m using the latest, fully upgraded EndeavourOS. I have installed MySQL and replaced it with MariaDB and have failed to get either to work. I consistently get the error of:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2)
Here is the output when I run mysqld --verbose:
2020-07-31 17:29:52 0 [Note] mysqld (mysqld 10.4.13-MariaDB) starting as process 11330 ... 2020-07-31 17:29:52 0 [Warning] Can't create test file /var/lib/mysql/username.lower-test mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 13 "Permission denied") 2020-07-31 17:29:52 0 [ERROR] Aborting
Running sudo systemctl start mariadb.service, I got the following error log: https://pastebin.com/J7wFh5nR (put in a pastebin because its otherwise quite long)
I have tried various solutions from online, including from these following links:
I had this issue when I had installed MySQL as well. Let me know if there are any other things I should post here.