Merge "Use MariaDB instead of MySQL for openSUSE"

This commit is contained in:
Jenkins
2013-10-15 14:48:20 +00:00
committed by Gerrit Code Review

View File

@@ -247,38 +247,56 @@ hwclock -w</programlisting>
<section xml:id="basics-database">
<title>MySQL Database</title>
<para>Most OpenStack services require a database to store information. In
<para os="ubuntu;debian;rhel;fedora;centos">Most OpenStack services
require a database to store information. In
this guide, we use a MySQL database running on the controller node. The
controller node needs to have the MySQL database installed. Any additional
nodes that access MySQL need to have the MySQL client software
installed:</para>
<para os="opensuse">Most OpenStack services require a database to store
information. In this guide, we use a MySQL compatible database
running on the controller node. This compatible database is
MariaDB. The controller node needs to have the MariaDB database
installed. Any additional nodesf that access the MariaDB
database need to have the MariaDB client software
installed:</para>
<itemizedlist>
<listitem><para>On the controller node, install the MySQL client, the MySQL database,
<listitem>
<para os="ubuntu;debian;rhel;fedora;centos">On the controller node,
install the MySQL client, the MySQL database,
and the MySQL Python library.</para>
<para os="opensuse">On the controller node, install
the MariaDB client, the MariaDB database, and the MySQL Python
library.</para>
<screen os="ubuntu;debian"><prompt>#</prompt> <userinput>apt-get install python-mysqldb mysql-server</userinput></screen>
<screen os="rhel;fedora;centos"><prompt>#</prompt> <userinput>yum install mysql mysql-server MySQL-python</userinput></screen>
<screen os="opensuse"><prompt>#</prompt> <userinput>zypper install mysql-community-server-client mysql-community-server python-mysql</userinput></screen>
<screen os="opensuse"><prompt>#</prompt> <userinput>zypper install mariadb-client mariadb python-mysql</userinput></screen>
<note os="ubuntu;debian"><para>When you install the server package, you will
be asked to enter a root password for the database. Be sure to choose
a strong password and remember it - it will be needed later.</para></note>
</listitem>
<listitem><para>On any nodes besides the controller node, just install the MySQL
<listitem><para>On any nodes besides the controller node, just install the
<phrase os="ubuntu;debian;rhel;fedora;centos">MySQL</phrase>
<phrase os="opensuse">MariaDB</phrase>
client and the MySQL Python library. This is all you need to do on any
system not hosting the MySQL database.</para>
<screen os="ubuntu;debian"><prompt>#</prompt> <userinput>apt-get install python-mysqldb</userinput></screen>
<screen os="rhel;fedora;centos"><prompt>#</prompt> <userinput>yum install mysql MySQL-python</userinput></screen>
<screen os="opensuse"><prompt>#</prompt> <userinput>zypper install mysql-community-server-client python-mysql</userinput></screen></listitem>
<screen os="opensuse"><prompt>#</prompt> <userinput>zypper install mariadb-client python-mysql</userinput></screen></listitem>
</itemizedlist>
<para os="rhel;centos;fedora;opensuse">Start the MySQL database server and set it to start automatically when
the system boots.</para>
<para os="rhel;centos;fedora;opensuse">Start the
<phrase os="rhel;fedora;centos">MySQL</phrase>
<phrase os="opensuse">MariaDB</phrase>
database server and set it to start automatically when
the system boots.</para>
<screen os="rhel;centos;fedora"><prompt>#</prompt> <userinput>service mysqld start</userinput>
<prompt>#</prompt> <userinput>chkconfig mysqld on</userinput></screen>
<screen os="opensuse"><prompt>#</prompt> <userinput>systemctl enable mysql.service</userinput>
<prompt>#</prompt> <userinput>systemctl start mysql.service</userinput></screen>
<para os="rhel;centos;fedora;opensuse">Finally, it's a good idea to set a root password for your MySQL
<para os="rhel;centos;fedora;opensuse">Finally, it's a good idea to set a root password for your
<phrase os="rhel;fedora;centos">MySQL</phrase>
<phrase os="opensuse">MariaDB</phrase>
database. The OpenStack programs that set up databases and tables will
prompt you for this password if it's set.</para>