I'm fairly new to Linux, when I first installed MySQL it was during an LAMP setup on personal machine with a Ubuntu Setup. ATM, I'm trying to get a fresh, clean install of only MySQL. I've been to trying to research how to fix this error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
But realized it's a wild goose-chase, this seems to be a common problem, with a number on solution of it not running in the background. Any Who, I still can't find out what my issue is and I know there is nothing important in this database, so:
sudo apt-get purge mysql-server mysql-client
Or probably does work, but there is still (conf) files of it saved somewhere. What subdirectories/directories would I have to go into and do a 'sudo rm -f [db_files]' on. (Or other apt-get purge(s) am I missing)
sudo /etc/init.d/mysqld
. As for removing configuration files,apt-get purge
should have done that, otherwise trysudo dpkg -P mysql-server
or manually remove/etc/mysql/
. As for database files, the default Ubuntu install location for them is, I want to say,/var/db
, but I don't use Ubuntu so I don't know. Also, you might want to take this to askubuntu.com, which is the StackExchange site for Ubuntu users.