ubuntu 下安装与卸载mysql
来源:互联网 发布:nginx 动静分离配置 编辑:程序博客网 时间:2024/04/27 16:07
原文连接:http://www.2cto.com/os/201408/329502.html
安装MysQL
在Ubuntu14.04下安装MySQL比较简单,只需下面这条命令就行了:
1.输入 sudo apt-get install mysql-server
2.继续执行后,需要设定MySQL密码。
3.再次输入密码。
4.之后就安装成功了,输入mysql -u root -p进行登陆。
到这里MysQL已经可以使用了。
卸载MysQL
1. sudo apt-get autoremove --purge mysql-server-5.5
根据自己安装的版本进行卸载
2.网上查的时候还遇到如下命令:
sudo apt-get remove mysql-server
sudo apt-get autoremove mysql-server
sudo apt-get remove mysql-common (非常重要)
当我执行了第一步后,再执行这三条,这几个已经不存在了。
3.清理残留数据
dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P
但是执行后出现下面情况
网上查了下,如果报以上错误,证明你的系统中没有残留配置文件了,无须担心。
这么说来只需要步骤一就可以完成卸载任务了!
0 0
- Ubuntu下彻底卸载mysql 与安装
- Ubuntu下卸载与安装mysql
- ubuntu 下安装与卸载mysql
- Ubuntu 下mysql卸载与安装
- ubuntu下安装mysql与彻底卸载mysql方法
- ubuntu安装与卸载mysql
- ubuntu下MySQL的安装使用与卸载-程序编译
- Ubuntu下彻底卸载mysql重安装
- ubuntu下的mysql安装配置卸载
- Ubuntu下卸载和安装mysql
- ubuntu下 mysql安装和卸载
- ubuntu中mysql的安装与卸载
- Ubuntu 12.04卸载与安装Mysql
- ubuntu+mysql在线安装与卸载
- ubuntu的mysql卸载与安装
- ubuntu下软件安装与卸载
- ubuntu下vmware6.5安装与卸载
- ubuntu 下软件的安装与卸载
- duilib 给List表头增加百分比控制宽度的功能
- jquery表格点击增加和删除样式
- jeasyUI treegrid 的 reload 和 getChanges
- 一步一步指导完成第一个AngularJS应用
- hibernate学习5之one-to-many双向关联
- ubuntu 下安装与卸载mysql
- 2015年1月7日
- SurfaceView实现动画
- Vim/Cscope 入门指导
- MVN的tomcat配置
- Android学习笔记十六.使用ContentProvider实现数据共享(二).URI...工具类
- leetcode----------------Median of Two Sorted Arrays
- python之 heapq -- show me the code 0006
- char* 和char[]的区别