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
本文将指导您如何安全地在服务器上卸载MySQL服务,包括关闭所有实例、删除RPM包和移除配置文件等步骤。
354

被折叠的 条评论
为什么被折叠?



