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.
- Access the MySQL database.
1mysql -u root -p
- Creating the Keystone database.
1CREATE DATABASE keystone;
- 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 &=$-_.+!*()
- Exit the database.
1exit
Parent topic: Installing, Configuring, and Verifying Keystone