Este contenido no está disponible en el idioma seleccionado.

6.2. Create the Block Storage Service Database


Create the database and database user used by the Block Storage services. All steps must be performed on the database server, while logged in as the root user.

Procedure 6.1. Creating the Block Storage Services Database

  1. Connect to the database service:
    # mysql -u root -p
    Copy to Clipboard Toggle word wrap
  2. Create the cinder database:
    mysql> CREATE DATABASE cinder;
    Copy to Clipboard Toggle word wrap
  3. Create a cinder database user and grant the user access to the cinder database:
    mysql> GRANT ALL ON cinder.* TO 'cinder'@'%' IDENTIFIED BY 'PASSWORD';
    mysql> GRANT ALL ON cinder.* TO 'cinder'@'localhost' IDENTIFIED BY 'PASSWORD';
    Copy to Clipboard Toggle word wrap
    Replace PASSWORD with a secure password that will be used to authenticate with the database server as this user.
  4. Flush the database privileges to ensure that they take effect immediately:
    mysql> FLUSH PRIVILEGES;
    Copy to Clipboard Toggle word wrap
  5. Exit the mysql client:
    mysql> quit
    Copy to Clipboard Toggle word wrap
Volver arriba
Red Hat logoGithubredditYoutubeTwitter

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar. Explore nuestras recientes actualizaciones.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

Theme

© 2025 Red Hat