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
This commit is contained in:
Colleen Murphy 2017-04-04 14:03:36 +02:00
parent 0c76374327
commit 14c7c93e03
1 changed files with 1 additions and 1 deletions

View File

@ -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';