ITeye博客

ubuntu 彻底删除 mysql 然后重装 mysql

yhjhoo · 2010-12-08 11:14 · 服务器 · 数据库 · Ubuntu · MySQL · Markdown

删除 mysql

sudo apt-get autoremove --purge mysql-server-5.0
sudo apt-get remove mysql-server
sudo apt-get autoremove mysql-server
sudo apt-get remove mysql-common //这个很重要

 
上面的有一些是多余的,但是为了免除后患,还是全部删除吧

清理残留数据

dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P

 

重新安装的过程跟你原来的一样

sudo apt-get install mysql-server

 

 

 

 

非常奇怪,为什么ubuntu不能覆盖安装!!!

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。