From a1b0c090059e30bd1f7f2e0cda892436ea67eb63 Mon Sep 17 00:00:00 2001 From: "zhang.lei" Date: Tue, 14 Aug 2018 12:08:23 +0000 Subject: [PATCH] Remove -u root as mysql is executed with root user As openstack installation guides suggest to run mysql with root shell user, mysql will not ask for password, so in controller-install-*.rst "-u root -p" is useless. Change-Id: I511f39d734702ab3d1a209f7d868f52fb184f1fc Related-Bug: #1785025 --- doc/source/configuration/configuring.rst | 2 +- doc/source/install/common_prerequisites.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/configuration/configuring.rst b/doc/source/configuration/configuring.rst index c6cec993f..4ec900bbb 100644 --- a/doc/source/configuration/configuring.rst +++ b/doc/source/configuration/configuring.rst @@ -159,7 +159,7 @@ MySQL database that is used by other OpenStack services. ``watcher`` user. Replace WATCHER_DBPASSWORD with the actual password:: - $ mysql -u root -p + # mysql mysql> CREATE DATABASE watcher CHARACTER SET utf8; mysql> GRANT ALL PRIVILEGES ON watcher.* TO 'watcher'@'localhost' \ diff --git a/doc/source/install/common_prerequisites.rst b/doc/source/install/common_prerequisites.rst index c367894d3..e2ef9b83a 100644 --- a/doc/source/install/common_prerequisites.rst +++ b/doc/source/install/common_prerequisites.rst @@ -11,7 +11,7 @@ you must create a database, service credentials, and API endpoints. .. code-block:: console - $ mysql -u root -p + # mysql * Create the ``watcher`` database: