typecho密码重置
方法一,新建管理员:
mysql -u root -p
SHOW DATABASES;
USE DATABASE typecho_xxxxx;
CREATE USER admin[@localhost](https://hostloc.com/home.php?mod=space&uid=22998) IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON typecho_xxxxx.* TO admin@localhost IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
方法二,直接改密码则是:
mysql -u root -p
SHOW DATABASES;
USE DATABASE typecho_xxxxx;
update mysql.user set password=PASSWORD where User='admin';
FLUSH PRIVILEGES;
exit;
PASSWORD是你的新密码,User是你之前管理账号。