I installed mysql-server on Debian 6.0.7 using apt-get install mysql-server command. Then, I go into some problems and removed it with apt-get remove mysql-server. No problem till then.
Then while trying to delete some files, I accidentally deleted /etc/mysql/ directory. No big deal since I no longer have mysql-server installed, right?
Wrong, now that I'm trying to re-install mysql-server, it came back with error message saying ...
Stopping MySQL database server: mysqld.
/etc/init.d/mysql: WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.gz ... (warning).
-bash: syntax error near unexpected token `('
compunuts@supra:~$ Starting MySQL database server: mysqld ..
-bash: Starting: command not found
compunuts@supra:~$ /etc/init.d/mysql: line 120: /etc/mysql/debian-start: No suc file or directory
-bash: /etc/init.d/mysql:: No such file or directory
compunuts@supra:~$ invoke-rc.d: initscript mysql, action "start" failed.
-bash: invoke-rc.d:: command not found
Anybody can point me to
a) How to completely remove and reinstall mysql-server
b) or how to remedy this problem I have.