openstack-db (1) - Linux Manuals

openstack-db: Set up a local database for use with an OpenStack service

NAME

openstack-db - Set up a local database for use with an OpenStack service

SYNOPSIS

openstack-db --service <service> --init|--drop [options]

DESCRIPTION

Set up a local database (MySQL) for use with openstack-<service>. This script will create a '<service>' database that is accessible only on localhost by user '<service>' with password '<service>'. The setup of a database with a multi-server OpenStack installation is outside of the scope of this simple helper script.

OPTIONS

--help | -h
Print usage information.
--drop
Drop the database.
--init
Initialise the database.
--update
Update an initialised database.
--password <pw> | -p <pw>
Specify the password for user that will be used to connect database for the service. By default the <service> parameter is used for the password.
--rootpw <pw> | -r <pw>
Specify the root database password. If the script installs the database server, it will set the root password to this value instead of prompting for a password. If the database server is already installed, this password will be used to connect to the database instead of having to prompt for it.
--service <service>
Specify the openstack service to manipulate the database for. This option is mandatory.
--yes | -y
In cases where the script would normally ask for confirmation before doing something, such as installing the database server, just assume yes. This is useful if you want to run the script non-interactively.