• 企业400电话
  • 网络优化推广
  • AI电话机器人
  • 呼叫中心
  • 全 部 栏 目

    网站建设 商标✡知产 微网小程序 电商运营 彩铃•短信 增值拓展业务
    MySQL关闭密码强度验证功能
    POST TIME:2021-10-18 21:12

    关于密码强度验证:

    [root@mysql mysql]# mysql -uroot -p123456 
    mysql: [Warning] Using a password on the command line interface can be insecure. 
    Welcome to the MySQL monitor. Commands end with ; or \g. 
    Your MySQL connection id is 4 
    Server version: 5.7.18 
    Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. 
    Oracle is a registered trademark of Oracle Corporation and/or its 
    affiliates. Other names may be trademarks of their respective 
    owners. 
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. 
    mysql>  
    mysql>  
    mysql> use mysql 
    ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement. 
    mysql> SET PASSWORD = PASSWORD(''); 
    ERROR 1819 (HY000): Your password does not satisfy the current policy requirements 
    mysql> exit 
    Bye 
    [root@mysql mysql]#  
    [root@mysql mysql]#  
    [root@mysql mysql]# vi /etc/my.cnf 
    # For advice on how to change settings please see 
    # http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html 
    [mysqld] 
    # 
    # Remove leading # and set to the amount of RAM for the most important data 
    # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. 
    # innodb_buffer_pool_size = 128M 
    # 
    # Remove leading # to turn on a very important data integrity option: logging 
    # changes to the binary log between backups. 
    # log_bin 
    # 
    # Remove leading # to set options mainly useful for reporting servers. 
    # The server defaults are faster for transactions and fast SELECTs. 
    # Adjust sizes as needed, experiment to find the optimal values. 
    # join_buffer_size = 128M 
    # sort_buffer_size = 2M 
    # read_rnd_buffer_size = 2M 
    datadir=/var/lib/mysql 
    socket=/var/lib/mysql/mysql.sock 
    # Disabling symbolic-links is recommended to prevent assorted security risks 
    symbolic-links=0 
    log-error=/var/log/mysqld.log 
    pid-file=/var/run/mysqld/mysqld.pid 
    plugin-load=validate_password.so 
    validate-password=OFF 
    ~ 
    ~ 
    ~ 
    ~ 
    ~ 
    ~ 
    ~ 
    ~ 
    "/etc/my.cnf" 30L, 1016C written 
    [root@mysql mysql]# service mysqld restart 
    Stopping mysqld:                      [ OK ] 
    Starting mysqld:                      [ OK ] 
    [root@mysql mysql]# mysql -uroot -p123456 
    mysql: [Warning] Using a password on the command line interface can be insecure. 
    Welcome to the MySQL monitor. Commands end with ; or \g. 
    Your MySQL connection id is 4 
    Server version: 5.7.18 
    Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. 
    Oracle is a registered trademark of Oracle Corporation and/or its 
    affiliates. Other names may be trademarks of their respective 
    owners. 
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. 
    mysql>  
    mysql>  
    mysql> use mysql 
    ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement. 
    mysql> SET PASSWORD = PASSWORD(''); 
    Query OK, 0 rows affected, 1 warning (0.00 sec) 
    mysql>  

    以上所述是小编给大家介绍的MySQL关闭密码强度验证功能,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对脚本之家网站的支持!

    您可能感兴趣的文章:
    • mysql-8.0.15-winx64 使用zip包进行安装及服务启动后立即关闭问题
    • 完美解决mysql启动后随即关闭的问题(ibdata1文件损坏导致)
    • MySQL 关闭子表的外键约束检察方法
    • PHP中用mysqli面向对象打开连接关闭mysql数据库的方法
    • 安全地关闭MySQL服务的教程
    • lnmp下如何关闭Mysql日志保护磁盘空间
    • Windows下使用批处理实现启动关闭mysql
    • MySQL数据库开启、关闭、查看函数功能的方法
    • MySQL关闭过程详解和安全关闭MySQL的方法
    • Mysql的游标的定义使用及关闭深入分析
    • MySQL服务器的启动和关闭
    • 怎样安全地关闭MySQL实例
    上一篇:MySql忘记密码修改方式适应5.7以上版本
    下一篇:MySQL因配置过大内存导致无法启动的解决方法
  • 相关文章
  • 

    关于我们 | 付款方式 | 荣誉资质 | 业务提交 | 代理合作


    © 2016-2020 巨人网络通讯

    时间:9:00-21:00 (节假日不休)

    地址:江苏信息产业基地11号楼四层

    《增值电信业务经营许可证》 苏B2-20120278

    X

    截屏,微信识别二维码

    微信号:veteran88

    (点击微信号复制,添加好友)

     打开微信