给大家带来办理CentOS下卸载MySQL不洁净的成绩
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的好朋友们!CentOS下怎样完整卸载MySQL?办理卸载不洁净的成绩体系:CentOS6.5,MySQL:MySql5.6
这里次要办理利用rpm装置的卸载成绩,装置***见:CentOS装置mysql*.rpm提醒conflictswithfilefrompackage的办理举措
固然说这里的是利用rpm装置的卸载成绩,我以为利用yum体例装置的假如碰到不异的成绩也一样合用。
检察已装置的办事
rpm–qa|grep-imysql
-i感化是不辨别巨细写
能够看到有两个装置包
MySQL-server-5.6.19-1.linux_glibc2.5.x86_64.rpm
MySQL-client-5.6.19-1.linux_glibc2.5.x86_64.rpm
删除这两个办事(往失落后缀)
rpm–eMySQL-client-5.6.19-1.linux_glibc2.5.x86_64
rpm-eMySQL-server-5.6.19-1.linux_glibc2.5.x86_64
检察残留的目次:
whereismysql
然后删除mysql目次:
rm–rf/usr/lib64/mysql
删除相干文件:
rm–rf/usr/my.cnf
rm-rf/root/.mysql_sercret
最关头的:
rm-rf/var/lib/mysql
假如这个目次假如不删除,再从头装置以后,暗码仍是之前的暗码,不会从头初始化!
网上查了好久都没有文章提到这个,最初仍是本人探索找出来的。
卸载完成!怎样断定是否是真的卸载洁净了呢?
一是看装置输入:
假如没有卸载洁净,装置server时输出只要两行:
viewplaincopy
[*]#rpm-ivhMySQL-server-5.6.19-1.linux_glibc2.5.x86_64.rpm
[*]Preparing...###########################################
[*]1:MySQL-server###########################################
卸载洁净了装置输出以下:
viewplaincopy
[*]#rpm-ivhMySQL-server-5.6.19-1.linux_glibc2.5.x86_64.rpm
[*]Preparing...###########################################
[*]1:MySQL-server###########################################
[*]2014-09-2307:22:430TIMESTAMPwithimplicitDEFAULTvalueisdeprecated.Pleaseuse--explicit_defaults_for_timestampserveroption(seedocumentationformoredetails).
[*]2014-09-2307:22:4326041InnoDB:Usingatomicstorefcountbufferpoolpages
[*]2014-09-2307:22:4326041InnoDB:TheInnoDBmemoryheapisdisabled
[*]2014-09-2307:22:4326041InnoDB:Mutexesandrw_locksuseGCCatomicbuiltins
[*]2014-09-2307:22:4326041InnoDB:Compressedtablesusezlib1.2.3
[*]2014-09-2307:22:4326041InnoDB:UsingLinuxnativeAIO
[*]2014-09-2307:22:4326041InnoDB:UsingCPUcrc32instructions
[*]2014-09-2307:22:4326041InnoDB:Initializingbufferpool,size=128.0M
[*]2014-09-2307:22:4326041InnoDB:Completedinitializationofbufferpool
[*]2014-09-2307:22:4326041InnoDB:Thefirstspecifieddatafile./ibdata1didnotexist:anewdatabasetobecreated!
[*]2014-09-2307:22:4326041InnoDB:Settingfile./ibdata1sizeto12MB
[*]2014-09-2307:22:4326041InnoDB:Databasephysicallywritesthefilefull:wait...
[*]2014-09-2307:22:4326041InnoDB:Settinglogfile./ib_logfile101sizeto48MB
[*]2014-09-2307:22:4326041InnoDB:Settinglogfile./ib_logfile1sizeto48MB
[*]2014-09-2307:22:4526041InnoDB:Renaminglogfile./ib_logfile101to./ib_logfile0
[*]2014-09-2307:22:4526041InnoDB:Newlogfilescreated,LSN=45781
[*]2014-09-2307:22:4526041InnoDB:Doublewritebuffernotfound:creatingnew
[*]2014-09-2307:22:4526041InnoDB:Doublewritebuffercreated
[*]2014-09-2307:22:4526041InnoDB:128rollbacksegment(s)areactive.
[*]2014-09-2307:22:4526041InnoDB:Creatingforeignkeyconstraintsystemtables.
[*]2014-09-2307:22:4526041InnoDB:Foreignkeyconstraintsystemtablescreated
[*]2014-09-2307:22:4526041InnoDB:Creatingtablespaceanddatafilesystemtables.
[*]2014-09-2307:22:4526041InnoDB:Tablespaceanddatafilesystemtablescreated.
[*]2014-09-2307:22:4526041InnoDB:Waitingforpurgetostart
[*]2014-09-2307:22:4526041InnoDB:5.6.19started;logsequencenumber0
[*]Arandomrootpasswordhasbeenset.Youwillfinditin/root/.mysql_secret.
[*]2014-09-2307:22:4626041Binlogend
[*]2014-09-2307:22:4626041InnoDB:FTSoptimizethreadexiting.
[*]2014-09-2307:22:4626041InnoDB:Startingshutdown...
[*]2014-09-2307:22:4826041InnoDB:Shutdowncompleted;logsequencenumber1625977
[*]
[*]
[*]2014-09-2307:22:480TIMESTAMPwithimplicitDEFAULTvalueisdeprecated.Pleaseuse--explicit_defaults_for_timestampserveroption(seedocumentationformoredetails).
[*]2014-09-2307:22:4826065InnoDB:Usingatomicstorefcountbufferpoolpages
[*]2014-09-2307:22:4826065InnoDB:TheInnoDBmemoryheapisdisabled
[*]2014-09-2307:22:4826065InnoDB:Mutexesandrw_locksuseGCCatomicbuiltins
[*]2014-09-2307:22:4826065InnoDB:Compressedtablesusezlib1.2.3
[*]2014-09-2307:22:4826065InnoDB:UsingLinuxnativeAIO
[*]2014-09-2307:22:4826065InnoDB:UsingCPUcrc32instructions
[*]2014-09-2307:22:4826065InnoDB:Initializingbufferpool,size=128.0M
[*]2014-09-2307:22:4826065InnoDB:Completedinitializationofbufferpool
[*]2014-09-2307:22:4826065InnoDB:HighestsupportedfileformatisBarracuda.
[*]2014-09-2307:22:4826065InnoDB:128rollbacksegment(s)areactive.
[*]2014-09-2307:22:4826065InnoDB:Waitingforpurgetostart
[*]2014-09-2307:22:4826065InnoDB:5.6.19started;logsequencenumber1625977
[*]2014-09-2307:22:4826065Binlogend
[*]2014-09-2307:22:4826065InnoDB:FTSoptimizethreadexiting.
[*]2014-09-2307:22:4826065InnoDB:Startingshutdown...
[*]2014-09-2307:22:5026065InnoDB:Shutdowncompleted;logsequencenumber1625987
[*]
[*]
[*]
[*]
[*]ARANDOMPASSWORDHASBEENSETFORTHEMySQLrootUSER!
[*]Youwillfindthatpasswordin/root/.mysql_secret.
[*]
[*]Youmustchangethatpasswordonyourfirstconnect,
[*]nootherstatementbutSETPASSWORDwillbeaccepted.
[*]Seethemanualforthesemanticsofthepasswordexpiredflag.
[*]
[*]Also,theaccountfortheanonymoususerhasbeenremoved.
[*]
[*]Inaddition,youcanrun:
[*]
[*]/usr/bin/mysql_secure_installation
[*]
[*]whichwillalsogiveyoutheoptionofremovingthetestdatabase.
[*]Thisisstronglyrecommendedforproductionservers.
[*]
[*]Seethemanualformoreinstructions.
[*]
[*]Pleasereportanyproblemsathttp://bugs.mysql.com/
[*]
[*]ThelatestinformationaboutMySQLisavailableonthewebat
[*]
[*]http://www.mysql.com
[*]
[*]SupportMySQLbybuyingsupport/licensesathttp://shop.mysql.com
[*]
[*]Newdefaultconfigfilewascreatedas/usr/my.cnfand
[*]willbeusedbydefaultbytheserverwhenyoustartit.
[*]Youmayeditthisfiletochangeserversettings
最初一段中提醒了主要信息,良多人由于不喜好读英文,招致接上去不晓得怎样操纵!
二就是装置完成,启动办事以后
利用下令:“mysql-uroot-p”输出你之前装置后设置的暗码,看能不克不及登录,假如还能够登录,申明没有卸载洁净!
欢迎大家来到仓酷云论坛!
给大家带来办理CentOS下卸载MySQL不洁净的成绩
熟读Linux系统有关知识,如系统目录树,有关内容可购书阅读或搜索论坛。 熟悉系统的基本操作,Linux的图形界面直观,操作简便,多加上机练习就可熟悉操作,在Linux下学习办公软件等常用软件。 另外Linux上也有很多的应用软件,安装运行了这些软件后,你就可以在Linux上编辑文档、图?片,玩游戏、上网、播放多媒体文件等。 学习Linux,应该怎样学,主要学些什么,一位Linux热心学习者,一段学习Linux的风云经验,历时十二个小时的思考总结,近十位网络Linux学习者权威肯定,为您学习Linux指明方向。 然我们对Linux的学习首先是通过对它的产生,发展,到今天仍然在不断完善开始的。 其实当你安装了一个完整的Linux系统后其中已经包含了一个强大的帮助,只是可能你还没有发现和使用它们的技巧。 可以说自己收获很大,基本上完成了老师布置的任务,对于拔高的题目没有去做,因为我了解我的水平,没有时间和精力去做。? 其中不乏很多IT精英的心血。我们学透以后更可以做成自己的OS!?
页:
[1]