If I reinstall MySQL, without removing the actual MySQL installation, would it rewrite all files without deleting my databases?
My problem is my mysqld
is broken, due to the fact that I accidentally copied a .txt
file into it, ie:
#cp -f root.txt /usr/sbin/mysqld
It was a mistake, obviously the daemon wouldn't start anymore, by executing
service mysql start
How can I fix this? I guess I need to reinstall MySQL, but I wonder if I can just reinstall without affecting the databases in my server.