zyskm用夢想丈量人生,用奔跑丈量激情

          linux 怎么完全卸載mysql數(shù)據(jù)庫

          在linux下開發(fā),mysql數(shù)據(jù)庫是經(jīng)常用到的,對于初學(xué)者來說,在linux怎么安裝卸載mysql數(shù)據(jù)庫,也許可能比較痛苦,這里簡單介紹下,怎么卸載msql數(shù)據(jù)庫。

          a)查看系統(tǒng)中是否以rpm包安裝的mysql

          1. [root@linux ~]# rpm -qa | grep -i mysql 
          2. MySQL-server-5.1.49-1.glibc23 
          3. MySQL-client-5.1.49-1.glibc23 
          卸載MySQL-server-5.1.49-1.glibc23和MySQL-client-5.1.49-1.glibc23
          1. [root@linux ~]# rpm -e MySQL-client-5.1.49-1.glibc23 
          2. [root@linux ~]# rpm -e MySQL-server-5.1.49-1.glibc23 
          b)查看有沒有mysql服務(wù)

           

          1. [root@linux ~]# chkconfig --list | grep -i mysql 
          2. mysql           0:off   1:off   2:on    3:on    4:on    5:on    6:off 
          刪除mysql服務(wù)
          1. [root@linux ~]# chkconfig --del mysql 
          c)刪除分散mysql文件夾
          1. [root@linux ~]# whereis mysql 
          2. mysql: /usr/lib/mysql /usr/share/mysql 
          分別刪除
          1. [root@linux lib]# rm -rf /usr/lib/mysql/ 
          2. [root@linux lib]# rm -rf /usr/share/mysql 

          通過以上幾步,mysql應(yīng)該已經(jīng)完全卸載干凈了
          原文地址:http://blog.csdn.net/love__coder/article/details/6894566

          posted on 2012-11-29 17:13 zyskm 閱讀(22119) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 论坛| 商洛市| 建阳市| 鄂温| 余姚市| 玉溪市| 顺昌县| 辛集市| 老河口市| 平利县| 公主岭市| 昌吉市| 鲜城| 收藏| 永定县| 双辽市| 嵊泗县| 洞头县| 普兰店市| 依安县| 太康县| 枞阳县| 遂昌县| 启东市| 合阳县| 黔江区| 冷水江市| 安远县| 尖扎县| 高淳县| 旬邑县| 盖州市| 资源县| 龙口市| 双桥区| 汉中市| 高雄县| 玛曲县| 收藏| 定襄县| 庄河市|