您的位置:首页 > 数据库 > MySQL

ubuntu下删除mysql和安装mysql

2017-11-05 15:53 225 查看
1、ubuntu系统有时候会自带安装了mysql,可以手动卸载所有的包

sudo apt-get autoremove --purge mysql-server-5.5

sudo apt-get remove mysql-server

sudo apt-get autoremove mysql-server

sudo apt-get remove mysql-common

#清理残留数据
dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P

3、安装 mysql
1)sudo apt-get install mysql-server
2)sudo apt-get install mysql-client
3)sudo apt-get install libmysqlclient-dev
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: