Add missing database create steps for sahara
Added missing database create step so that later schema update steps will not fail. Change-Id: Iaf383430055ece3e83f9d7de8b518f5ee4f2298f Closes-Bug: #1418654
This commit is contained in:
parent
4a76bf074f
commit
4bb075e721
@ -101,6 +101,28 @@ max_allowed_packet = 256M</programlisting>
|
|||||||
</step>
|
</step>
|
||||||
</substeps>
|
</substeps>
|
||||||
</step>
|
</step>
|
||||||
|
<step>
|
||||||
|
<para>To create the database, complete these steps:</para>
|
||||||
|
<substeps>
|
||||||
|
<step>
|
||||||
|
<para>Use the database access client to connect to the database server as the <literal>root</literal> user:</para>
|
||||||
|
<screen><prompt>$</prompt> <userinput>mysql -u root -p</userinput></screen>
|
||||||
|
</step>
|
||||||
|
<step>
|
||||||
|
<para>Create the <literal>sahara</literal> database:</para>
|
||||||
|
<screen><userinput>CREATE DATABASE sahara;</userinput></screen>
|
||||||
|
</step>
|
||||||
|
<step>
|
||||||
|
<para>Grant proper access to the <literal>sahara</literal> database:</para>
|
||||||
|
<screen><userinput>GRANT ALL PRIVILEGES ON sahara.* TO 'sahara'@'localhost' \ IDENTIFIED BY ' <replaceable>SAHARA_DBPASS</replaceable>';</userinput>
|
||||||
|
<userinput>GRANT ALL PRIVILEGES ON sahara.* TO 'sahara'@'%' \ IDENTIFIED BY '<replaceable>SAHARA_DBPASS</replaceable>';</userinput></screen>
|
||||||
|
<para>Replace <replaceable>SAHARA_DBPASS</replaceable> with a suitable password.</para>
|
||||||
|
</step>
|
||||||
|
<step>
|
||||||
|
<para>Exit the database access client.</para>
|
||||||
|
</step>
|
||||||
|
</substeps>
|
||||||
|
</step>
|
||||||
<step os="rhel;centos;fedora;opensuse;sles;ubuntu"><para>Create database schema:
|
<step os="rhel;centos;fedora;opensuse;sles;ubuntu"><para>Create database schema:
|
||||||
<screen><prompt>#</prompt> <userinput>sahara-db-manage --config-file /etc/sahara/sahara.conf upgrade head</userinput></screen>
|
<screen><prompt>#</prompt> <userinput>sahara-db-manage --config-file /etc/sahara/sahara.conf upgrade head</userinput></screen>
|
||||||
</para></step>
|
</para></step>
|
||||||
|
Loading…
Reference in New Issue
Block a user