My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3168: Error when installing gerrit with mysql
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by themlk...@gmail.com, Feb 9, 2015
*****************************************************************
*****                                                       *****
***** !!!! 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.

Sign in to add a comment

Powered by Google Project Hosting