#修改/etc/my.cnf,新增以下行
skip-grant-tables
systemctl restart mysqld
#刷新权限
flush privileges;
#配置密码
ALTER USER 'root'@'localhost' IDENTIFIED BY 'P@ssW0rd'
systemctl restart mysqld
#修改/etc/my.cnf,新增以下行
skip-grant-tables
systemctl restart mysqld
#刷新权限
flush privileges;
#配置密码
ALTER USER 'root'@'localhost' IDENTIFIED BY 'P@ssW0rd'
systemctl restart mysqld
gitlab管理员root的密码忘记了,通过gitlab命令行直接修改root账号的密码。
indow1、net stop mysql 停止MySQL服务2、执行mysqld-nt --skip-grant-tables这样启动
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M