Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to connect to the H2 database used in Gerrit

Tags:

h2

gerrit

I tried the following command, but it failed.

ssh -p 24198 my_server gerrit gsql 
like image 267
Dean Chen Avatar asked Dec 29 '25 20:12

Dean Chen


1 Answers

That is the correct command. What error did you get? Was Gerrit up and running? It must be up and running to connect over ssh. See http://gerrit-documentation.googlecode.com/svn/Documentation/2.4/cmd-gsql.html

If Gerrit is not up and running, you can use java -jar gerrit.war gsql -d <SITE_PATH> - see http://gerrit-documentation.googlecode.com/svn/Documentation/2.4/pgm-gsql.html

like image 81
Brad Avatar answered Jan 01 '26 22:01

Brad



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!