How to unintall the Mysql service on your server?
--Make sure all the Mysql services on your server are not useful forever.
--Backup all your datas manually
--close all the mysql instance by the SHELL below:
for i in `ps -ef |grep -i mysql |grep -v grep |awk '{print $2}'`; do
kill -9 ${i}
done
--remove MySQL RPMs:
for i in `rpm -qa |grep -i mysql`; do
rpm -e --allmatches --nodeps ${i}
done
--remove the my.cnf file
mv /etc/my.cnf /etc/my.cnf.mv
--Make sure all the Mysql services on your server are not useful forever.
--Backup all your datas manually
--close all the mysql instance by the SHELL below:
for i in `ps -ef |grep -i mysql |grep -v grep |awk '{print $2}'`; do
kill -9 ${i}
done
--remove MySQL RPMs:
for i in `rpm -qa |grep -i mysql`; do
rpm -e --allmatches --nodeps ${i}
done
--remove the my.cnf file
mv /etc/my.cnf /etc/my.cnf.mv