那就改一下密码吧,
vim /etc/my.cnf
在文件中找到mysql,随意在其中加入一行数据
skip-grant-tables
然后,
#针对mysql 57以后的版本。
update mysql.user set authentication_string=password('*******') where user='*******'; #修改密码成功
那就改一下密码吧,
vim /etc/my.cnf
在文件中找到mysql,随意在其中加入一行数据
skip-grant-tables
然后,
#针对mysql 57以后的版本。
update mysql.user set authentication_string=password('*******') where user='*******'; #修改密码成功