zoukankan      html  css  js  c++  java
  • centos7下用yum安装mysql5.7

    1、安装mysql源

    下载地址:http://dev.mysql.com/downloads/repo/yum/

    下载之后用yum安装:yum localinstall -y xx.noarch.rpm

    2、安装mysql

    yum install -y mysql-community-server

    3、启动

    service mysqld start 

    启动之后用 grep "passowrd" /var/log/mysqld.log获得密码

     

    问题:

    用mysqladmin修改密码出现错误

    Warning: Since password will be sent to server in plain text, use ssl connection to ensure password safety.

    mysqladmin: unable to change password; error: 'Your password does not satisfy the current policy requirements'

    这是因为MySQL对设置密码强度有要求导致的。

    解决:

    先登录mysql,然后设置密码强度
    set global validate_password_policy=0; //表示设置为安全最低,但密码长度依旧最少8位

     


    set global validate_password_length=4; //将密码长度设为4位

     

    然后就可以执行修改密码了。

     

     

     

     

  • 相关阅读:
    android
    需求分析
    请简述使用MediaRecorder实现录音的步骤
    AudioManager的详细内容
    ios 开发failed to chmod
    崩溃block
    图片不能切割成功 调了五个小时!!!!
    collectionView itemW宽度计算不对
    只用头文件
    ping 10.13.5.233
  • 原文地址:https://www.cnblogs.com/yoursoul/p/5730289.html
Copyright © 2011-2022 走看看