From 1ba7d02a0e52521652d7478b15a3edb16db8b567 Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Wed, 4 Sep 2013 14:18:18 +1200 Subject: [PATCH] Make gerrit DB setup match actual practice. sudo su - mysql is the actual mechanism used by -infra folk. Change-Id: I209f0e9e2cb3f4dd7ad012f39b6e6551c05c5e0e --- doc/source/gerrit.rst | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/doc/source/gerrit.rst b/doc/source/gerrit.rst index 1ce42c69e3..059d6073c9 100644 --- a/doc/source/gerrit.rst +++ b/doc/source/gerrit.rst @@ -52,7 +52,8 @@ Add "Approved" review type to gerrit: .. code-block:: mysql - mysql -u root -p + sudo -u root + mysql use reviewdb; insert into approval_categories values ('Approved', 'A', 2, 'MaxNoBlock', 'N', 'APRV'); insert into approval_category_values values ('No score', 'APRV', 0); @@ -63,7 +64,8 @@ Expand "Verified" review type to -2/+2: .. code-block:: mysql - mysql -u root -p + sudo -u root + mysql use reviewdb; update approval_category_values set value=2 where value=1 and category_id='VRIF'; @@ -78,7 +80,8 @@ we're not happy with people for submitting the patch in the first place: .. code-block:: mysql - mysql -u root -p + sudo -u root + mysql use reviewdb; update approval_category_values set name="Do not merge" where category_id='CRVW' and value=-2; @@ -90,6 +93,9 @@ Add information about the CLA: .. code-block:: mysql + sudo -u root + mysql + use reviewdb; insert into contributor_agreements values ( 'Y', 'Y', 'Y', 'ICLA', 'OpenStack Individual Contributor License Agreement',