Debian或Ubuntu服务器:忘记mysql密码 重置
2018-12-29 本文已影响0人
Grey____
1.vi /etc/mysql/debian.cnf
以user password登录
- 修改密码:
ALTER USER 'root'@'localhost'IDENTIFIED BY '********'
1.vi /etc/mysql/debian.cnf
以user password登录
ALTER USER 'root'@'localhost'IDENTIFIED BY '********'