mysql的root密码忘了
忘记密码:
https://www.cnblogs.com/ryanzheng/p/9348723.html
my.cnf
的[mysqld]下加:
skip-grant-tables
重启
mysql -uroot
update user set authentication_string = NULL where user = 'root';
退出,删除skip-grant-tables,重启
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'web99~';
有些人,自甘堕落;有些人,即便身处深渊,也依旧笑容灿烂。