update user set authentication_string=password("新密码") where user="root"; mysql5.7后字段password字段变成了authentication_string, 但函数password()没变
mysql5.7之后好像是没有password這个字段了,但是不知道现在用的是哪个字段存密码,哪位大神知道麻烦告诉一下,谢谢了
不能添加password字段,因为authentication_string就是密码经编码后的内容。
默认就有 不需要添加
23,120
社区成员
74,507
社区内容
加载中
试试用AI创作助手写篇文章吧