谢谢大家了,我刚才在更新typecho的时候才发现管理员密码忘记了,怎么也登录不了,要怎么处理呢? 没有安装phpmyadmin |
ssh登录vps 方法一,新建管理员: mysql -u root -p SHOW DATABASES; USE DATABASE typecho_xxxxx; CREATE USER admin@localhost IDENTIFIED BY ‘password’; GRANT ALL PRIVILEGES ON typecho_xxxxx.* TO [email protected] 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是你之前管理账号。 |