1, running java -jar * .war init -d ~ / review
fatal: DbInjector failed
fatal: Unable to determine SqlDialect
fatal: caused by java.sql.SQLException: Access denied for user 'gerrit2'@'localhost' (using password: YES)
2, the specific reasons for gerrit2 not have permission to log on to mysql
mysql -u root -p
If you do not remember your password appears
1, the first stop mysql
Service mysql STOP or /etc/init.d/mysql stop
depending mysql installation path or whether to add environment variables to go inside
, skipping certification authority --skip-grant-tables option to restart the MySQL service:
./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;