查看Linux旧版本
rpm -qa | grep -i -E mysql|mariadb
卸载
rpm -qa | grep -i -E mysql|mariadb | xargs -n1 sudo rpm -e --nodeps
yum删除
sudo yum remove mysql-libs
sudo yum install libaio
sudo yum -y install autoconf
sudo rpm -ivh mysql-community-common-8.0.27-1.el7.x86_64.rpm
sudo rpm -ivh mysql-community-libs-8.0.27-1.el7.x86_64.rpm
sudo rpm -ivh mysql-community-client-plugins-8.0.27-1.el7.x86_64.rpm
sudo rpm -ivh mysql-community-libs-8.0.27-1.el7.x86_64.rpm
sudo rpm -ivh mysql-community-libs-compat-8.0.27-1.el7.x86_64.rpm
sudo rpm -ivh mysql-community-client-8.0.27-1.el7.x86_64.rpm
sudo rpm -ivh mysql-community-server-8.0.27-1.el7.x86_64.rpm
启动mysql
sudo systemctl start mysqld
查看mysql临时密码
sudo cat /var/log/mysqld.log | grep password
修改密码
https://blog.csdn.net/weixin_41877582/article/details/121499064
远程访问
update mysql.user set host=’%’ where user=‘root’;
Centos7安装msyql8、简单安装
最新推荐文章于 2024-11-14 12:24:32 发布