首页 > 数据库技术 > 详细

centos7 mysql 各种报错

时间:2019-06-04 19:16:30      阅读:140      评论:0      收藏:0      [点我收藏+]

1、重置root密码

     vi /etc/my.cnf

    添加skip-grant-tables

   service mysqld restart

    技术分享图片

2、mysql 登录

     报错1

        Unknown system variable ‘validate_password_policy‘      

    报错2

      命令行无法输入命令提示 You must reset your password using ALTER USER statement before executing this statement.

   报错3

     ERROR 1819 (HY000): Your password does not satisfy the current policy requirements。

3、解决办法:

    首次设置一个复杂的密码 (mysql 默认是中级 MEDIUM)     Root_12root

    技术分享图片

 

   1\   use mysql

   2\  update user set authentication_string = password("Root_12root") where user = ‘root‘

  4\ 重启

  5、用新密码登录,

  6  、

      alter user ‘root‘@‘localhost‘ identified by ‘Root_12root‘ 

    

 

centos7 mysql 各种报错

原文:https://www.cnblogs.com/cbugs/p/10975264.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!