本文主要是介绍ubuntu16安装和卸载mysql5.6,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
因为ubuntu16 apt-get默认安装是mysql5.7,这里改成安装5.6
apt-get install software-properties-common
sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty universe'
sudo apt-get update
sudo apt install mysql-server-5.6
sudo apt install mysql-client-5.6
卸载
sudo apt purge mysql-*
sudo rm -rf /etc/mysql/ /var/lib/mysql
sudo apt autoremove
sudo apt autoreclean
这篇关于ubuntu16安装和卸载mysql5.6的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!