输入banner图图片脚本导航/分类

MySQL忘记root密码

vim /etc/my.cnf // [mysqld]下添加参数 [mysqld] skip-grant-tables

重启mysql

systemctl restart mysqld 

终端输入 msyql进入数据库

mysql>update mysql.user set authentication_string=password(‘新密码‘) where user=‘root‘ and host=‘localhost‘

MySQL忘记root密码

标签:tar   HERE   tab   password   vim   cat   code   msyql   localhost