I had mysql server running. I stopped it, and removed it (apt-get remove mysql-server mysql-client)
I then manually removed the directories:
/var/lib/mysql
/var/run/mysqld
I rebooted. But when I type mysql, I get the following message:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
I get the same error message when I type service mysql stop
This means mysql server is still running. How do I get rid of it completely and stop the process. My OS is Ubuntu 12.04 server.