目录
- rpm -qa | grep mysql
- #可能的显示情况如下
- #mysql-community-libs-8.0.12-1.el7.x86_64
- #mysql80-community-release-el7-1.noarch
- #mysql-community-client-8.0.12-1.el7.x86_64
- #mysql-community-common-8.0.12-1.el7.x86_64
- #mysql-community-server-8.0.12-1.el7.x86_64
- #通过下面的命令进行删除
- yum remove mysql-xxx-xxx-
-
-
- #查找mysql的相关文件
- find / -name mysql
-
- #根据自身的需求删除mysql的配置文件信息
- rm -rf /var/lib/mysql
-
[root@iZwz9j1nogjvowrlo3htsyZ ~]# wget -i -c https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
yum -y install mysql80-community-release-el7-3.noarch.rpm
yum -y install mysql-community-server --nogpgcheck
systemctl start mysqld.service
grep "password" /var/log/mysqld.log
mysql -u root -p
SHOW VARIABLES LIKE 'validate_password%';
- set global validate_password.policy=0;
- set global validate_password.length=1;
set password = '123456';