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