Creating the Glance Database
Glance provides a catalog service for storing and querying virtual drive images of VM instances. Nova compute service components can use this service when VM instances are running.
Perform the following operations on the controller node.
- Access the MySQL database.
1mysql -u root -p
- Create a Glance database.
1CREATE DATABASE glance;
- Grant Glance access permission, and set the PASSWORD to the password of the glance user to access the database.
1 2
GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'localhost' IDENTIFIED BY 'PASSWORD'; GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'%' IDENTIFIED BY 'PASSWORD';

- Exit the database.
exit
Parent topic: Installing, Configuring, and Verifying Glance