码上敲享录 > mysql实战经验分享 > xampp的mysql出现Your password has expired. To log in you must change it using a client that supports ex

xampp的mysql出现Your password has expired. To log in you must change it using a client that supports ex

上一章章节目录下一章 2019-04-28已有1999人阅读 评论(0)

xampp的mysql出现Your password has expired. To log in you must change it using a client that supports expired passwords.


解决方法:

1、停止mysql服务器

sudo /opt/lampp/lampp stopmysql


2、使用'--skip-grant-tables' 参数来启动 mysqld

sudo /opt/lampp/sbin/mysqld --skip-grant-tables


3、再开一个客户端进入mysql

sudo /opt/lampp/bin/mysql -uroot

现在会直接进入mysql


4、连接mysql权限数据库

use mysql;


5、修改root用户的密码

update user set password=password("888888") where user="root";

或者alter user user() identified by "123456";


6、刷新权限表

flush privileges;


7、退出

quit;


8、重启mysql

sudo /opt/lampp/lampp startmysql


0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交