当前位置:网站首页>Mysql(九)Your password has expired. To log in you must change it using a client that supports expired

Mysql(九)Your password has expired. To log in you must change it using a client that supports expired

2022-06-11 15:02:00 Makasa

前言

本章主要讲述 Your password has expired. To log in you must change it using a client that supports expired passwords. 解决方案

  • ps:mysql时不时就出幺蛾子,心好累

一、问题描述

  • 错误直接翻译过来即:您的密码已过期,您必须使用支持过期密码的客户端进行更改。
    在这里插入图片描述

二、解决方法

# 进入mysql
mysql -u root -p
输入之前正确的密码进入

# 设置新密码
set password = password('yy1998123')

# 设置密码永不过期
alter user 'root'@'localhost'password expire never;

# 更新权限
flush privileges;

在这里插入图片描述
在这里插入图片描述

原网站

版权声明
本文为[Makasa]所创,转载请带上原文链接,感谢
https://blog.csdn.net/Makasa/article/details/125229609