链接:软件都在这里,百度网盘自取!!!
提取码:8888
tar -xvf 不需要z 因为是tar包不是gz包
rpm -qa | grep mari
rpm -ivh mysql-community-common-5.7.26-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-5.7.26-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-5.7.26-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-5.7.26-1.el7.x86_64.rpm
systemctl start mysqld.service
查看初始密码
grep “password” /var/log/mysqld.log
进入mysql
mysql -u root -p
设置密码安全级别
set global validate_password_policy=0
出现箭头按;加回车
设置密码
set password for ‘root’@‘localhost’ =password(‘660418wzj’);
mysql -u root -p