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'
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'
gitlab管理员root的密码忘记了,通过gitlab命令行直接修改root账号的密码。
mysql忘记root密码处理
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M