标签:password min admin except use mysql for init 用户
fatal: DbInjector failed
fatal: Unable to determine SqlDialect
fatal: caused by java.sql.SQLException: Access denied for user ‘gerrit2‘@‘localhost‘ (using password: YES)
mysql -u root -p
如果出现不记得密码了
1、先停止mysql
service mysql stop 或者 /etc/init.d/mysql stop
具体取决于mysql安装路径或者是否添加到环境变量里面去
2、跳过权限认证 --skip-grant-tables选项重启MySQL服务:
./bin/mysqld_safe
--skip-grant-tables --user=root &
3、登录mysql 更改密码
mysqladmin -u root -p password "新密码" 回车
use mysql;
update user set password = password (‘新密码‘) where user = ‘用户‘
flush privileges;
标签:password min admin except use mysql for init 用户
原文地址:https://www.cnblogs.com/king258/p/11109307.html