关于密码强度验证:

[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关闭密码强度验证功能,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对我们网站的支持!

时间: 2017-06-20

mysql 验证密码强度,MySQL关闭密码强度验证功能相关推荐

  1. 【mysql】linux安装mysql

    //打开local文件 cd /usr/local //建立mysql文件夹 mkdir mysql//打开mysql文件 cd mysql 下载安装包 wget http://repo.mysql. ...

  2. 忘记mysql的root密码后,修改密码

    首先修改/etc/my.cnf,在最后一行添加一句–skip-grant-tables 然后登录mysql,执行如下sql语句,括号内为新密码 mysql> use mysql mysql> ...

  3. 修改mysql密码级别_mysql修改密码策略

    关于这个问题是在 < 基于MySQL Yum存储库在Linux-7.2上安装MySQL-5.7.21数据库服务(实战篇) > 时遇到的问题,这是 mysql 初始化时,使用临时密码,修改自 ...

  4. mysql 1819错误_关于数据库密码报错MySQL ERROR 1819 (HY000): Your password d

    您可能已经注意到,在为MySQL数据库服务器的root设置密码时,系统会提示您启用"验证密码"组件.如果启用,验证密码组件将自动检查给定密码的强度,并强制用户只设置足够安全的密码. ...

  5. linux mysql忘记root_linux下mysql-5.6忘记root密码,重置root密码详细过程

    在linux平台下使用mysql过程中忘记了root密码,对于运维和DBA来讲都是一件头疼的事情,下面来讲解下怎么进行重置mysql数据库root 密码: 1.首先停止mysql服务进程: 1 ser ...

  6. MySQL5.6解压版详细安装教程(附安装配置、MySQL数据库设置root管理员密码,MySQL字符集设置问题及解决办法)

    写在前面:MySQL安装分为两种方式,一种是MSI安装版(普通的安装包,有引导安装的界面),另一种是压缩包解压版(解压可直接使用,但需要配置),本文主要针对压缩包解压安装进行讲解,并附加安装过程遇到的 ...

  7. window安装mysql默认密码忘记_window10 安装Mysql 8.0.17以及忘记密码重置密码

    一.安装Mysql8.0.17 1:首先去官网下载安装包 下载地址:https://dev.mysql.com/downloads/mysql/ 2:将解压文件解压到你安装的目录:D:\mysql\m ...

  8. mac mysql密码错误_解决mac 下mysql安装后root用户登录密码错误问题

    使用的mac OS 10.11  安装mysql后访问root/root用户失败,网上找了一些解决办法,下面记录下解决方法方便以后自己查询 概述(看懂下面就不用看了): 停服务:sudo /usr/l ...

  9. dos进入mysql不记得密码_windos mysql 忘记密码,无密码登录,重新登录

    上一节的MySQL的配置安装里,并没有用到配置文件my.ini.那在MYSQL8.0.13如何解决密码重置问题呢.我去网上搜了好多的资料都是改配置文件my.ini的,后来终于找到了一条命令:操作步骤如 ...

最新文章

  1. C语言网络编程:多路IO select实现多客户端
  2. R语言White’s检验实战:检验回归模型中是否存在异方差性(heteroscedasticity)、发生了异常差(heteroscedasticity)问题如何解决
  3. yarn资源调度(网络搜集)
  4. 第四章--调试器及相关工具入门
  5. 配置 --- vscode中react格式化解决方案
  6. php7 匿名继承类_PHP7中的匿名类使用方法_后端开发
  7. fidder设置断点,修改请求参数等
  8. linux启动python项目_java项目部署Linux服务器几种启动方式总结经验
  9. Go语言高性能编程手册(万字长文)
  10. 电子沙盘 数字沙盘 开发教程
  11. php酒店系统论文,基于PHP的酒店管理系统PHP1008(毕业设计+论文)
  12. Unity编辑器开发之中文名称转拼音
  13. 智能电话机器人--基于 UniMRCP 实现讯飞 TTS MRCP Server
  14. 华为od与中软外包哪个更好_朋友入职中软一个月(外包华为)就离职了!
  15. 如何把晨光计算机调成音乐模式,伴着晨光走向你——广播《晨光音乐行》栏目运作心得...
  16. Houdini图文笔记:Could not create OpenCL device of type (HOUDINI_OCL_DEVICETYPE)问题的解决
  17. 4.2 Hive SQL
  18. 在office visio中插入用PS处理的照片,照片显示不出来/显示空白
  19. 全国最新行政区划sql文件
  20. Unity游戏开发面试问题总结(含答案)

热门文章

  1. 全国计算机组装与维修中级工,计算机维修工职业标准
  2. 赶尽杀绝:Stata中文乱码之转码
  3. (二)MkDocs学习笔记——撰写文档
  4. 【小白做科研( 九 )】炼丹小记
  5. data:text/html;c,html image -- data:image/png;base64
  6. Linux 普罗米修斯 docker容器
  7. 计算机算法基础_考情分析|2020年华南理工大学计算机考研考情分析
  8. Android 一键清理内存,缓存,文件代码
  9. 【J-Falsh下载,烧录,批处理操作,手动添加芯片】
  10. 02.Java动态代理实现与原理分析之静态代理