I am new to MySQL.
I naively tried to uninstall my MySQL from by Ubuntu 20.04 before attempting to reinstall it again.
In order to do this, I followed the instructions listed in the accepted answer in this post.
Alas, upon reinstallation, trying to run sudo mysql
returned ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
I checked out /var/run/ and it contains no mysqld folder...
How can "recreate" the mysqld socket? Any help will be appreciated!
systemctl status mysql.service
– steeldriver Nov 13 '20 at 21:41dpkg -l mysql *
revealed that version 8.0 was still installed. Purging it and reinstalling mysql-server did the trick for me. – Sheldon Nov 14 '20 at 09:46