5.4. Create the Image Service Database
In this procedure, the database and database user that will be used by the Image service will be created. These steps must be performed while logged in to the database server as the
root user (or as a user with suitable access: create db, create user, grant permissions).
Procedure 5.1. Creating the Image Service database
- Connect to the database service using the
mysqlcommand.#mysql -u root -p - Create the
glancedatabase.mysql>CREATE DATABASE glance; - Create a
glancedatabase user and grant it access to theglancedatabase.mysql>GRANT ALL ON glance.* TO 'glance'@'%' IDENTIFIED BY 'PASSWORD';mysql>GRANT ALL ON glance.* TO 'glance'@'localhost' IDENTIFIED BY 'PASSWORD';Replace PASSWORD with a secure password that will be used to authenticate with the database server as this user. - Flush the database privileges to ensure that they take effect immediately.
mysql>FLUSH PRIVILEGES; - Exit the
mysqlclient.mysql>quit
The Image Service database has been created. The database will be populated during service configuration.