cat /etc/mysql/debian.cnf
[client]
host = localhost
user = debian-sys-maint
password = 4AiDYEIp8AJIwEe1
socket = /var/run/mysqld/mysqld.sock
[mysql_upgrade]
user = debian-sys-maint
password = 4AiDYEIp8AJIwEe1
socket = /var/run/mysqld/mysqld.sock
basedir = /u
得到密码
进入mysql命令行
mysql> update mysql.user set Password = password("4AiDYEIp8AJIwEe1") where User ="debian-sys-maint";
mysql>flush privileges;
mysql>quit
/etc/init.d/mysql restart
即可解决.
方法来自:https://www.huzs.net/ p=901
如您从本文得到了有价值的信息或帮助,请考虑扫描文末二维码捐赠和鼓励。
如本文对您有用,捐赠和留言 将是对我最好的支持~(捐赠可转为站内积分)
如愿意,请向朋友推荐本站,谢谢。
尊重他人劳动成果。转载请务必附上原文链接,我将感激不尽。
留言