赞
踩
https://downloads.mysql.com/archives/community/
查看
rpm -qa|grep maria*
删除
rpm -e --nodeps mariadb-connector-c-config-3.1.11-2.el8_3.noarch
查看
rpm -qa | grep mysql
删除
rpm -e mysql57-community-release-el7-10.noarch
tar -xvf mysql-8.0.28-1.el8.x86_64.rpm-bundle.tar
rpm -ivh mysql-community-common-8.0.28-1.el8.x86_64.rpm
rpm -ivh mysql-community-libs-8.0.28-1.el8.x86_64.rpm --force --nodeps
rpm -ivh mysql-community-client-8.0.28-1.el8.x86_64.rpm --force --nodeps
rpm -ivh mysql-community-server-8.0.28-1.el8.x86_64.rpm --force --nodeps
rpm -qa | grep mysql
systemctl start mysqld.service
service mysqld status
grep ‘password’ /var/log/mysqld.log
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-NeYIjsA5-1655898738115)(…/AppData/Roaming/Typora/typora-user-images/image-20220622193220896.png)]
mysql -uroot -p
ALTER USER ‘root’@‘localhost’ IDENTIFIED BY ‘104673Zhx@’ PASSWORD EXPIRE NEVER;
FLUSH PRIVILEGES;
use mysql;
create user ‘root’@‘%’ identified by ‘104673Zhx@’;
grant all privileges on . to ‘root’@‘%’ with grant option;
FLUSH PRIVILEGES;
es on . to ‘root’@‘%’ with grant option;
FLUSH PRIVILEGES;
[外链图片转存中…(img-XejK76D3-1655898738116)]
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。