64b6c9261e
Current folder name New folder name Book title ---------------------------------------------------------- basic-install DELETE cli-guide DELETE common common NEW admin-guide-cloud Cloud Administrators Guide docbkx-example DELETE openstack-block-storage-admin DELETE openstack-compute-admin DELETE openstack-config config-reference OpenStack Configuration Reference openstack-ha high-availability-guide OpenStack High Availabilty Guide openstack-image image-guide OpenStack Virtual Machine Image Guide openstack-install install-guide OpenStack Installation Guide openstack-network-connectivity-admin admin-guide-network OpenStack Networking Administration Guide openstack-object-storage-admin DELETE openstack-security security-guide OpenStack Security Guide openstack-training training-guide OpenStack Training Guide openstack-user user-guide OpenStack End User Guide openstack-user-admin user-guide-admin OpenStack Admin User Guide glossary NEW OpenStack Glossary bug: #1220407 Change-Id: Id5ffc774b966ba7b9a591743a877aa10ab3094c7 author: diane fleming
31 lines
1.8 KiB
XML
31 lines
1.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<section xml:id="installing-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>Installing MySQL</title>
|
|
<para>Install MySQL as
|
|
root:</para>
|
|
<screen os="ubuntu;deb"><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>
|
|
<para>During the install, you'll be prompted for the mysql root
|
|
password. Enter a password of your choice and verify it.</para>
|
|
<para os="ubuntu">Use <command>sed</command> to edit
|
|
<filename>/etc/mysql/my.cnf</filename> to change
|
|
<literal>bind-address</literal> from localhost (127.0.0.1) to
|
|
any (0.0.0.0) and restart the mysql service, as root.</para>
|
|
<para>
|
|
<screen os="ubuntu"><prompt>#</prompt> <userinput>sed -i 's/127.0.0.1/0.0.0.0/g' /etc/mysql/my.cnf</userinput>
|
|
<prompt>#</prompt> <userinput>service mysql restart</userinput></screen>
|
|
</para>
|
|
<para os="rhel;centos;fedora">Set MySQL to start the daemon every time you start and then start the server.
|
|
<screen><prompt>#</prompt> <userinput>chkconfig --level 2345 mysqld on</userinput>
|
|
<prompt>#</prompt> <userinput>service mysqld start</userinput></screen></para>
|
|
<para os="opensuse">Set MySQL to start the daemon every time you start and then start the server.
|
|
<screen><prompt>#</prompt> <userinput>systemctl enable mysqld.service</userinput>
|
|
<prompt>#</prompt> <userinput>systemctl enable mysqld.service</userinput></screen></para>
|
|
</section>
|