Start the mysql command line client by running:
mysql -u root -p
Enter the mysql root user's password when prompted.
To configure the MySQL database, create the nova database.
mysql> CREATE DATABASE nova;
Create a MySQL user and password for the newly-created nova database that has full control of the database.
mysql> GRANT ALL ON nova.* TO 'nova'@'%' IDENTIFIED BY '[YOUR_NOVADB_PASSWORD]'; mysql> GRANT ALL ON nova.* TO 'nova'@'localhost' IDENTIFIED BY '[YOUR_NOVADB_PASSWORD]';
![]() | Note |
|---|---|
In the above commands, even though the By default, MySQL will create entries in the user table with
ERROR 1045 (28000): Access denied for user 'nova'@'localhost' (using password: YES)
Thus, we create a separate See the MySQL documentation on connection verification for more details on how MySQL determines which row in the user table it uses when authenticating connections. |
Enter quit at the mysql> prompt to exit MySQL.
mysql> quit
The command to populate the database is described later in the documentation, in the Section entitled Configuring the Database for Compute.
![]() | Securing MySQL |
|---|---|
Additional steps are required to configure MySQL for production mode. In particular, anonymous accounts should be removed. On several distributions, these accounts can be removed by running the following script after installing mysql: /usr/bin/mysql_secure_installation |

![[Note]](../common/images/admon/note.png)
