您的位置:首页 > 运维架构 > Linux

Linux下mysql完全卸载

2017-07-28 15:56 363 查看
虚拟机上装了mysql,很久不用,再启动的时候报了奇怪的问题,所以准备卸载重装,再安装时报错,原因是未完全卸载。这里记录一下,以备用。

执行 service mysql stop/start/restart报错:

(事后补充,权限问题…sudo执行就好,-_-!)

Rejected send message, 1 matched rules; type="method_call", sender=":1.7" (uid=1000 pid=6452 comm="stop mysql ") interface="com.ubuntu.Upstart0_6.Job" member="Stop" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init ")


在apt-get方式下安装,卸载命令:

sudo rm /var/lib/mysql -R
sudo rm /etc/mysql -R
sudo apt-get autoremove mysql* --purge
sudo apt-get remove apparmor
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  linux mysql 虚拟机