/
compute-database-mysql.xml
23 lines (21 loc) · 1.26 KB
/
compute-database-mysql.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0" encoding="UTF-8"?>
<section xml:id="setting-up-sql-database-mysql"
xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0">
<title>Configuring the SQL Database (MySQL) on the Cloud Controller</title>
<para>Start the mysql command line client by running:</para>
<para><userinput>mysql -u root -p</userinput></para>
<para>Enter the mysql root user's password when prompted.</para>
<para>To configure the MySQL database, create the nova database. </para>
<para><userinput>mysql> CREATE DATABASE nova;</userinput></para>
<para>Create a MySQL user and password for the newly-created nova database that
has full control of the database. </para>
<para><userinput>mysql> GRANT ALL ON nova.* TO 'nova'@'%' IDENTIFIED BY '<replaceable>[YOUR_NOVADB_PASSWORD]</replaceable>';</userinput></para>
<para>Enter quit at the mysql> prompt to exit MySQL.</para>
<para><userinput>mysql> quit</userinput></para>
<para>The command to populate the database is described later in the
documentation, in the Section entitled <link
linkend="compute-db-sync">Configuring the Database for Compute</link>.
</para>
</section>