CentOS安装MySQL遇到的问题记录

遇到问题

  1. Access denied for user 'root'@'localhost' (using password:YES)

    解决方法:Centos7 安装mysql后登录提示:Access denied for user 'root'@'localhost'

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

    解决方法:You must reset your password using ALTER USER statement before executing this statement报错处理

  3. Your password dose not satisfy the current policy requirements.

    解决方法:

    set global validate_password_policy=0;   --修改级别
    set global validate_password_length=4;   --最小的默认密码位数
    复制代码
  4. Host * is not allowed to connect to this MySQL server

    
    use mysql;--使用mysql系统数据库
    
    GRANT ALL PRIVILEGES ON *.* to 'root'@'192.168.1.10' identified by '123456'; --配置192.168.1.10可以通过root:123456访问数据库
    
    flush privileges; --从mysql数据库中的授权表重新载入权限
    
    select * from user; --查看用户权限是否变更
    复制代码

更新时间

发布时间 : 2018年11月3

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值