1 # 例:安装 mysql-apt-config_0.8.9-1_all.deb 2 3 #1、安装alien,用于类型转换,将.deb转换为rpm 4 yum install alien 5 6 #2、转换命令 7 alien -r mysql-apt-config_0.8.9-1_all.deb 8 9 #3、查看列表已经转换
# 直接安装 rpm -ivh mysql-apt-config_0.8.9-1_all.rpm # 安装deb dpkg -i mysql-apt-config_0.8.9-1_all.deb
rpm 安装mysqld8.0 rpm -qa| grep mysql rpm -ivh mysql80xxxx.rpm #安装完成后/etc/yun.repos.d/会增加2个mysql-community文件 yum install mysql-server #等待安装完成即可 systemctl enable mysqld.service #设置开机启动 mysqld --initialize #初始化 grep 'temporary password' /var/log/mysqld.log #查看初始密码 alter user 'root'@'localhost' identified by 'xxxx'; #若执行提示 error 1819,则降低policy级别后执行 set global validate_password.policy=0; #开启远程连接 use mysql; update user set host='%' where user='root'; flush privileges;
rpm安装mysql8.0 https://www.jianshu.com/p/224a891932d8