Rate This Document
Findability
Accuracy
Completeness
Readability

Creating the Keystone Database

Keystone provides identity authentication and authorization for other service components in the OpenStack project.

Perform the following operations on the controller node.

  1. Access the MySQL database.
    1
    mysql -u root -p
    
  2. Creating the Keystone database.
    1
    CREATE DATABASE keystone;
    
  3. Grant permissions to allow the Keystone service to access the required database. Replace PASSWORD with the password of database user keystone.
    1
    2
    GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' IDENTIFIED BY 'PASSWORD';
    GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' IDENTIFIED BY 'PASSWORD';
    

    Replace PASSWORD with the actual password. The OpenStack user password does not support the number sign (#). OpenStack has no requirements on password complexity. You can set a password without special characters. OpenStack only supports the special characters including &=$-_.+!*()

  4. Exit the database.
    1
    exit