Linux安装,卸载mysql,及忘记密码
本教程记录Linux下安装,完全卸载,忘记密码,数据库MySQL,安装的是mysql8.0.13
一、安装
(1)wget下载mysql
命令:cd /tmp
命令:wget https://dev.musql.com/get/Downloads/mysql-8.0/mysql-8.0.13-1.el7.x86_64.rpm-bundle.tar
(2)解压
命令:tar -xvf mysql-8.0.13-1.el7.x86_64.rpm-bundle.tar
(3)依次安装,顺序不能乱
命令:rpm -vih mysql-community-common-8.0.13-1.el7.x86_64.rpm
命令:rpm -vih mysql-community-libs-8.0.13-1.el7.x86_64.rpm
命令:rpm -vih mysql-community-libs-compat-8.0.13-1.el7.x86_64.rpm
命令:rpm -vih mysql-community-client-8.0.13-1.el7.x86_64.rpm
命令:rpm -vih mysql-community-embedded-compat-8.0.13-1.el7.x86_64.rpm
命令:rpm -vih mysql-comm