好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

Ubuntu 彻底卸载 MySQL 数据库

Ubuntu 18.04 彻底卸载MySQL 5.7.31

1. 查看 MySQL 的依赖项

dpkg --list|grep mysql

2. 卸载 mysql-common

sudo apt remove mysql-common

3. 卸载 mysql-server

sudo apt autoremove --purge mysql-server

4. 清除残留数据

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

5. 再次查看 MySQL 的剩余依赖项(一般这时候就卸载干净了)

dpkg --list|grep mysql

6. 继续删除依赖项(如果步骤 5还有剩余依赖,则继续 6)

sudo apt autoremove --purge mysql-apt-config

Ubuntu 彻底卸载 MySQL 数据库

标签:pkg   清除   查看   --   lis   awk   code   config   gre   

查看更多关于Ubuntu 彻底卸载 MySQL 数据库的详细内容...

  阅读:39次