Issue with mysql when installing gerrit [solved]

Got problems with your B2 or B3? Share and get helped!
Post Reply
eramoli
Posts: 67
Joined: 15 Oct 2010, 13:06
Location: Sundbyberg, Sweden

Issue with mysql when installing gerrit [solved]

Post by eramoli » 01 Dec 2012, 06:21

Hi,

I am trying to install gerrit on my B3 follwing the instructions on http://gerrit-documentation.googlecode. ... stall.html, but have an issue with mysql.

When logged in as root I perform the following command

Code: Select all

#mysql
I receive the following response
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
How do I grant root@localhost access to mysql or should I use a different user to use mysql?

/Morgan
Last edited by eramoli on 01 Dec 2012, 07:42, edited 1 time in total.

nobody
Posts: 226
Joined: 10 Mar 2012, 14:46

Re: Issue with mysql when installing gerrit

Post by nobody » 01 Dec 2012, 06:58

well, on the B3 mysql is shipped without a root password, so your "mysql" command should give you access. The fact that it does not means you changed the root password into something only you know.

If you forgot the root password, you can reset it by runinng mysql without grant tables
http://www.howtoforge.com/reset-forgott ... t-password

eramoli
Posts: 67
Joined: 15 Oct 2010, 13:06
Location: Sundbyberg, Sweden

Re: Issue with mysql when installing gerrit

Post by eramoli » 01 Dec 2012, 07:41

Hi,

Thanks, this solved the issue.

/Morgan

Post Reply