ubuntu16.04彻底卸载Mariadb/Mysql以及重装Mariadb/Mysql
Song • 692次浏览 • 0个评论 • 2019-07-06 05:56:21
一、彻底卸载Mariadb/Mysql
sudo apt-get remove mysql-*
dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P
清理完毕再次执行dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P
提示如下:
dpkg: error: --purge needs at least one package name argument
Type dpkg --help for help about installing and deinstalling packages [*];
Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
出现如上提示表示写真成功!
二、重新安装Mariadb/Mysql
apt-get install mariadb-server python-pymysql
使用如上命令即可重新安装Mariadb/Mysql
- 没有评论
公告
- pytorch
- FreeSWITCH
- Laravel