From 14c7c93e0367f87d4a6af37c6685a4e0f1bbb299 Mon Sep 17 00:00:00 2001 From: Colleen Murphy Date: Tue, 4 Apr 2017 14:03:36 +0200 Subject: [PATCH] Fix database grant instructions in install guide On at least mariadb, there is a default grant that restricts connections from localhost and supercedes other permissions. In order for the db sync command to work later on, we need to specifically enable connections from localhost for the 'magnum' user. Moreover, it is redundant to grant permissions for hostname 'controller' and the wildcard host '%'. This patch fixes the error and makes magnum's database configuration instructions consistent with the main install guide Change-Id: I21f2c9a2f3978ae6011b4b7b49c8edd826781284 --- install-guide/source/common/prerequisites.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-guide/source/common/prerequisites.rst b/install-guide/source/common/prerequisites.rst index 8f34752c10..6ce4bd9f73 100644 --- a/install-guide/source/common/prerequisites.rst +++ b/install-guide/source/common/prerequisites.rst @@ -23,7 +23,7 @@ service, you must create a database, service credentials, and API endpoints. .. code-block:: console - GRANT ALL PRIVILEGES ON magnum.* TO 'magnum'@'controller' \ + GRANT ALL PRIVILEGES ON magnum.* TO 'magnum'@'localhost' \ IDENTIFIED BY 'MAGNUM_DBPASS'; GRANT ALL PRIVILEGES ON magnum.* TO 'magnum'@'%' \ IDENTIFIED BY 'MAGNUM_DBPASS';