Centos7上卸載Mariadb數據庫
查詢所安裝的MariaDB組件:
[root@localhost logs]# rpm -qa | grep Maria* MariaDB-server-5.5.49-1.el7.centos.x86_64 MariaDB-common-5.5.49-1.el7.centos.x86_64 MariaDB-client-5.5.49-1.el7.centos.x86_64
卸載數據庫:
[root@localhost logs]# yum -y remove mari*
刪除數據庫文件:
[root@localhost logs]# rm -rf /var/lib/mysql/*
-
安裝
yum -y install mariadb mariadb-server
啟動
systemctl start mariadb
系統開啟自啟動
systemctl enable mariadb
- 作者:sunny05296 來源:CSDN 原文:https://blog.csdn.net/sunny05296/article/details/56015884 版權聲明:本文為博主原創文章,轉載請附上博文鏈接!