Updated MySQL server configuration to use UTF-8
I updated the MySQL server configuration section to use the UTF-8 character set by default for table creation. I also modified the structure to use a procedure which agrees with conventions. Change-Id: I44fd8171ae27f21d44991f2942117fa42b8d3314 Closes-Bug: #1292934
This commit is contained in:
parent
5a80decadb
commit
29f793a587
@ -395,16 +395,37 @@ iface eth1 inet static
|
|||||||
for the root password for the database. Choose a strong
|
for the root password for the database. Choose a strong
|
||||||
password and remember it.</para>
|
password and remember it.</para>
|
||||||
</note>
|
</note>
|
||||||
<para>Edit <filename os="ubuntu;debian"
|
<para>The MySQL configuration requires some changes to work with
|
||||||
>/etc/mysql/my.cnf</filename><filename
|
OpenStack.</para>
|
||||||
os="opensuse;sles;rhel;fedora;centos"
|
<procedure>
|
||||||
>/etc/my.cnf</filename> and set the
|
<step>
|
||||||
<literal>bind-address</literal> to the internal IP address
|
<para os="ubuntu;debian">Edit the
|
||||||
of the controller, to enable access from outside the
|
<filename>/etc/mysql/my.cnf</filename> file:</para>
|
||||||
controller node.</para>
|
<para os="opensuse;sles;rhel;fedora;centos">Edit the
|
||||||
<programlisting language="ini">[mysqld]
|
<filename>/etc/my.cnf</filename> file:</para>
|
||||||
|
<substeps>
|
||||||
|
<step>
|
||||||
|
<para>Under the <literal>[mysqld]</literal> section, set the
|
||||||
|
<literal>bind-address</literal> key to the management IP
|
||||||
|
address of the controller node to enable access by other
|
||||||
|
nodes via the management network:</para>
|
||||||
|
<programlisting>[mysqld]
|
||||||
...
|
...
|
||||||
bind-address = 192.168.0.10</programlisting>
|
bind-address = 192.168.0.10</programlisting>
|
||||||
|
</step>
|
||||||
|
<step>
|
||||||
|
<para>Under the <literal>[mysqld]</literal> section, set the
|
||||||
|
following keys to enable the UTF-8 character set by
|
||||||
|
default:</para>
|
||||||
|
<programlisting>[mysqld]
|
||||||
|
...
|
||||||
|
collation-server = utf8_general_ci
|
||||||
|
init-connect = 'SET NAMES utf8'
|
||||||
|
character-set-server = utf8</programlisting>
|
||||||
|
</step>
|
||||||
|
</substeps>
|
||||||
|
</step>
|
||||||
|
</procedure>
|
||||||
<para os="ubuntu;debian">Restart the MySQL service to apply
|
<para os="ubuntu;debian">Restart the MySQL service to apply
|
||||||
the changes:</para>
|
the changes:</para>
|
||||||
<screen os="ubuntu;debian"><prompt>#</prompt> <userinput>service mysql restart</userinput></screen>
|
<screen os="ubuntu;debian"><prompt>#</prompt> <userinput>service mysql restart</userinput></screen>
|
||||||
|
Loading…
Reference in New Issue
Block a user