mysql 8.0
下载源 wget https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm
安装源
yum localinstall mysql80-community-release-el7-1.noarch.rpm
安装服务
yum install mysql-community-server
查看mysql进程
ps -ef |grep mysql
找到系统初始化的密码
cat /var/log/mysqld.log |grep pass
mysql -uroot -p
输入密码
修改初始化密码
alter user user() identified by “Root_12root”;
修改密码类型限制
mysql> set global validate_password.policy=0;
mysql> set global validate_password.length=1;
alter user user() identified by “123456”;
mysql 8.0 下载
最新推荐文章于 2024-09-29 00:58:08 发布