mysqladmin: unable to change password; error: ‘Your password does not satisf
装完mysql启动服务,第一次使用需要重置密码,显示我输入的密码"123456"太简单,在个人练习过程中,不想把密码设置太复杂
# grep password /var/log/mysql.log
2022-01-02T05:03:18.625427Z 1 [Note] A temporary password is generated for root@localhost: )Vl+vhJE%9yj
# mysqladmin -uroot -p")Vl+vhJE%9yj" password "123456"
mysqladmin: [Warning] Using a password on the command line interface can be insecure.
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 -uroot -p')Vl+vhJE%9yj'
(1)修改validate_password_policy参数值为0(1为开启复杂策略)
注意:此参数(policy)必须优先修改,因为policy策略不修改为0会影响下面的length参数。
mysql> set global validate_password_policy=0;
(2)修改validate_password_length参数值为1
mysql> set global validate_password_length=1;
退出重新修改密码
mysql > exit;
# mysqladmin -uroot -p')Vl+vhJE%9yj' password
输入密码: 123456
确认密码: 123456
mysqladmin: unable to change password; error: ‘Your password does not satisf相关推荐
- mysqladmin: Can't turn off logging; error: 'Access denied; you need the SUPER privilege for this ope
问题: 在centOS7上安装了mysql后,想使用如下命令修改密码: /usr/bin/mysqladmin -u root password 123456 报异常: mysqladmin: Can ...
- mysqladmin: Can't turn off logging; error: 'Access denied; you need the SUPER privilege for this op
问题: 在centOS上安装了mysql后,卸载了又重新安装,使用mysqladmin -u root password 'new password' 更改密码,提示: mysqladmin: Can ...
- Unable to lock JVM Memory: error=12--elasticsearch
环境 用的 tar.gz方式来安装 组件 版本 ElasticSearch 7.10.1 ubuntu 20.04 经过测试有效的方案 下面是根据[1]修改的 修改的文件文件 修改内容 /etc/se ...
- oracle 10g 返回RemoteOperationException: ERROR: Wrong password for user
在oracle 10g 中有些操作需要输入操作系统的用户名密码才能继续下去,但是无论怎样输入,总是会返回RemoteOperationException: ERROR: Wrong password ...
- 关于mysql修改密码 set password for root@localhost = password(‘xxx‘);报错解决方法
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('123456'); ERROR 1064 (42000): You have an ...
- 解决 Unable to translate SQLException with Error code ‘17059‘, will now try the fallback translator
前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 1.报错: Unable to translate SQLException with Error ...
- oracle学习日志---返回RemoteOperationException: ERROR: Wrong password for user-错误的用户名密码-的错误的解决办法...
ERROR Wrong password for user 在OEM中有些操作需要输入操作系统的用户名密码才能继续下去,但是以前无论怎样输入,总是会返回RemoteOperationException ...
- 客户机无法上网,ping 127.0.0.1提示unable to contact IP driver ,error code2
环境:winxp sp3,内部静态IP 故障现象: 1.本地连接无法访问网络 2.ping 127.0.0.1 提示:unable to contact IP driver ,error code2 ...
- unable to start ssh-agent service, error :1058 问题的解决方法
Windows 10 启动 ssh-agent 命令时,抛出 unable to start ssh-agent service, error :1058 : (1)原因分析 ssh-agent 服务 ...
最新文章
- [转]PHP用mysql数据库存储session
- 【鸿蒙 HarmonyOS】UI 布局 ( 相对布局 DependentLayout )
- mysql 多列合并为一列_多列数据合并一列,还在用数据透视就out了,用=号只要三步完成...
- 编程相关离线文档下载方式推荐
- 阿里云产品汇总及解释
- listview 不可滑动问题解决
- html中2d变形兼容性,CSS3(3)---2D变形(transform)
- crontab实现以秒执行,很好很强大
- lisp princ详解_LISP教程
- MAC-多开程序两种方法
- 十进制转二进制、十六进制
- 使用excel分类汇总数据生成饼图
- Maya2011下载 (破解正式版)
- 有哪些常用的搜索引擎指令?
- 【Python 数据科学】Numpy和Pandas基础
- 电路中的 电源 与 接地 的理解
- leetcode 面试题 17.14. 最小K个数 大顶堆 小顶堆 快排
- 作文:The Harm of Divorce
- 使用nodeJS写一个简单的小爬虫
- 字典树 —— 字符串分析算法