*****************************************************************
***** *****
***** !!!! THIS BUG TRACKER IS FOR GERRIT CODE REVIEW !!!! *****
***** *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, CYANOGENMOD, *****
***** INTERNAL ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.*****
***** *****
***** THOSE ISSUES BELONG IN DIFFERENT ISSUE TRACKERS *****
***** *****
*****************************************************************
Affected Version: 2.10
What steps will reproduce the problem?
1. Run mysql commands to create database schema and user:
CREATE USER 'gerrit2'@'localhost' IDENTIFIED BY 'mypassword';
CREATE DATABASE reviewdb;
GRANT ALL ON reviewdb.* TO 'gerrit2'@'localhost';
FLUSH PRIVILEGES;
2. Run war init:
java -jar /var/gerrit/gerrit-2.10.war init --no-auto-start -d /var/gerrit
3.
What is the expected output? What do you see instead?
Expected output is no errors after running war init.
Instead I see:
fatal: DbInjector failed
fatal: Unable to determine SqlDialect
fatal: caused by java.sql.SQLException: Access denied for user 'gerrit2'@'127.0.0.1' (using password: YES)
Please provide any additional information below.
I do not get an error if I use the mysql root user.