kylinV10SP3安装MySQL5.7.44
需要的安装包:
mysql-community-common-5.7.44-1.el7.x86_64.rpm
mysql-community-libs-5.7.44-1.el7.x86_64.rpm
mysql-community-client-5.7.44-1.el7.x86_64.rpm
mysql-community-server-5.7.44-1.el7.x86_64.rpm
开始安装,安装顺序:common->libs->client->server
rpm -ivh mysql-community-common-5.7.44-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-5.7.44-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-5.7.44-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-5.7.44-1.el7.x86_64.rpm
很顺利:
服务:
#启动服务
systemctl start mysqld.service
#查看状态
systemctl status mysqld.service
#加入开机启动
systemctl enable mysqld.service
修改密码:
#先查看密码
grep 'temporary password' /var/log/mysqld.log
#进入mysql命令行
mysql -uroot -p
#更新密码策略
mysql> set global validate_password_policy=0;
mysql> set global validate_password_length=1;
#修改密码
mysql> set password for root@localhost=password('123456');
mysql> flush privileges;
mysql> exit
end。