centos安装mysql8

1. 主要参数贴子

CentOS 下 MySQL 8.0 安装部署,超详细! - 腾讯云开发者社区-腾讯云

2. 碰到问题

(1)在安装mysql时,提示

Public key for mysql-community-common-8.0.30-1.el7.x86_64.rpm is not installed.

解决办法:

centos yum安装mysql出现Public key for mysql-community-server-5.7.37-1.el7.x86_64.rpm is not installed_searlas的博客-CSDN博客

(2) 在登陆mysql欲修改密码为123456时,mysql提示

Your password does not satisfy the current policy requirements

原文要求

set global validate_password.policy=0;

set global validate_password.length=1;

但是我在设置时,仍然被系统提示需要先修改密码

You must reset your password using ALTER USER statement before excuting this statement.

解决办法:

先修改密码为一个符合规则的复杂密码,然后再修改上面这两条密码策略。改好策略后,再把密码改为123456.

(3)如果想要远程登录, 则需要进行update更新下root账号的权限

mysql> update mysql.user set host='%' where user="root"; Query OK, 1 row affected (0.10 sec) Rows matched: 1 Changed: 1 Warnings: 0

(4)关闭防火墙

Centos7 防火墙配置_依米_的博客-CSDN博客_centos7防火墙配置

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值