关于mysql安装过程中的密码设置问题

在使用set password = password("0000000000");更改密码时出现的ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'password("0000000000")' at line 1报错

最开始以为是输入不严谨,直到输入了近10次之后我后知后觉的意识到问题好像没有这么简单

 

后来在同学的帮助下尝试修改my.cnf文件,结果又遇到了新的问题  You must reset your password using ALTER USER statement before executing this statement. 和 

Your password does not satisfy the current policy requirements

 

痛苦之余只能再次搜索解决方法,最后终于让我找到了!!!mysql密码设置需要 凑够8位,而且需要满足数字+字母+下划线

天知道我在这里卡了多久!

 

参考——

https://blog.csdn.net/m0_46503302/article/details/129519966

https://baijiahao.baidu.com/s?id=1757919914268448427&wfr=spider&for=pc

https://www.cnblogs.com/liuzijin/p/17683252.html

posted @   椰子灰  阅读(49)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
点击右上角即可分享
微信分享提示