[08254fc] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[08254fc] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
[68196987] | 6 |
|
---|
[4890200] | 7 | <!ENTITY mysql-download-http "http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-&mysql-version;.tar.gz">
|
---|
[e3fec8f] | 8 | <!ENTITY mysql-download-ftp " ">
|
---|
[14ea7e8] | 9 | <!ENTITY mysql-md5sum "1d3d91e8459c719bbef7c97bb499634d">
|
---|
[b4c88c39] | 10 | <!ENTITY mysql-size "32 MB">
|
---|
| 11 | <!ENTITY mysql-buildsize "572 MB (additional 359 MB installed)">
|
---|
| 12 | <!ENTITY mysql-time "6.3 SBU">
|
---|
[08254fc] | 13 | ]>
|
---|
| 14 |
|
---|
[c30b739] | 15 | <sect1 id="mysql" xreflabel="MySQL-&mysql-version;">
|
---|
[22c7fe6] | 16 | <?dbhtml filename="mysql.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>MySQL-&mysql-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="mysql">
|
---|
| 26 | <primary sortas="a-MySQL">MySQL</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to MySQL</title>
|
---|
| 31 |
|
---|
[cd34755] | 32 | <para>
|
---|
| 33 | <application>MySQL</application> is a widely used and fast SQL database
|
---|
| 34 | server. It is a client/server implementation that consists of a
|
---|
| 35 | server daemon and many different client programs and libraries.
|
---|
| 36 | </para>
|
---|
[22c7fe6] | 37 |
|
---|
[2f62a072] | 38 | &lfs75_checked;
|
---|
[fa050c09] | 39 |
|
---|
[22c7fe6] | 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
[cd34755] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&mysql-download-http;"/>
|
---|
| 45 | </para>
|
---|
[22c7fe6] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[cd34755] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&mysql-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[22c7fe6] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[cd34755] | 53 | <para>
|
---|
| 54 | Download MD5 sum: &mysql-md5sum;
|
---|
| 55 | </para>
|
---|
[22c7fe6] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[cd34755] | 58 | <para>
|
---|
| 59 | Download size: &mysql-size;
|
---|
| 60 | </para>
|
---|
[22c7fe6] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[cd34755] | 63 | <para>
|
---|
| 64 | Estimated disk space required: &mysql-buildsize;
|
---|
| 65 | </para>
|
---|
[22c7fe6] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[cd34755] | 68 | <para>
|
---|
| 69 | Estimated build time: &mysql-time;
|
---|
| 70 | </para>
|
---|
[22c7fe6] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
[47a345a2] | 74 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
[9c98f0e] | 75 | <itemizedlist spacing="compact">
|
---|
[7ea2a6f] | 76 | <listitem>
|
---|
[cd34755] | 77 | <para>
|
---|
| 78 | Optional patch (recommended if building for Amarok):
|
---|
| 79 | <ulink url="&patch-root;/mysql-&mysql-version;-embedded_library_shared-1.patch"/>
|
---|
| 80 | </para>
|
---|
[7ea2a6f] | 81 | </listitem>
|
---|
[47a345a2] | 82 | <listitem>
|
---|
[cd34755] | 83 | <para>
|
---|
| 84 | Optional Documentation (see tip below):
|
---|
[47a345a2] | 85 | <ulink url="http://dev.mysql.com/doc/"/>
|
---|
[f267149] | 86 | </para>
|
---|
[9c98f0e] | 87 | </listitem>
|
---|
| 88 | </itemizedlist>
|
---|
[0d7900a] | 89 |
|
---|
[1e11f8e] | 90 | <bridgehead renderas="sect3">MySQL Dependencies</bridgehead>
|
---|
[22c7fe6] | 91 |
|
---|
[16e74d3] | 92 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[cd34755] | 93 | <para role="required">
|
---|
| 94 | <xref linkend="cmake"/>
|
---|
| 95 | </para>
|
---|
[16e74d3] | 96 |
|
---|
[f267149] | 97 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[cd34755] | 98 | <para role="recommended">
|
---|
[4890200] | 99 | <xref linkend="libevent"/> and
|
---|
[cd34755] | 100 | <xref linkend="openssl"/>
|
---|
| 101 | </para>
|
---|
[f267149] | 102 |
|
---|
[22c7fe6] | 103 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[bc6e56d] | 104 | <para role="optional">
|
---|
[4890200] | 105 | <ulink url="http://packages.debian.org/source/sid/libaio">libaio</ulink> and
|
---|
| 106 | <ulink url="http://www.thrysoee.dk/editline/">libedit</ulink>
|
---|
[bc6e56d] | 107 | </para>
|
---|
[9f12e36] | 108 |
|
---|
[3cb0c57] | 109 | <para condition="html" role="usernotes">User Notes:
|
---|
[cd34755] | 110 | <ulink url="&blfs-wiki;/mysql"/>
|
---|
| 111 | </para>
|
---|
[22c7fe6] | 112 | </sect2>
|
---|
[0d7900a] | 113 |
|
---|
[22c7fe6] | 114 | <sect2 role="installation">
|
---|
| 115 | <title>Installation of MySQL</title>
|
---|
[0d7900a] | 116 |
|
---|
[cd34755] | 117 | <para>
|
---|
| 118 | For security reasons, running the server as an unprivileged user
|
---|
| 119 | and group is strongly encouraged. Issue the following (as
|
---|
| 120 | <systemitem class="username">root</systemitem>) to create the
|
---|
| 121 | user and group:
|
---|
| 122 | </para>
|
---|
[22c7fe6] | 123 |
|
---|
[b785ab29] | 124 | <screen role="root"><userinput>groupadd -g 40 mysql &&
|
---|
[cd34755] | 125 | useradd -c "MySQL Server" -d /srv/mysql -g mysql -s /bin/false -u 40 mysql</userinput></screen>
|
---|
| 126 |
|
---|
| 127 | <para>
|
---|
| 128 | If the MySQL server is not needed, it is possible to build only the
|
---|
| 129 | client libraries of MySQL. To do this you need to add
|
---|
| 130 | <parameter>-DWITHOUT_SERVER=ON</parameter> to the <command>cmake</command>
|
---|
| 131 | command below.
|
---|
| 132 | </para>
|
---|
| 133 |
|
---|
| 134 | <para>
|
---|
[4890200] | 135 | MySQL contains an embedded server library. By default, it is built as a
|
---|
| 136 | statically linked library, <filename>libmysqld.a</filename>, but by
|
---|
| 137 | applying the optional patch, a shared version of this library can be built.
|
---|
| 138 | The library is needed by certain applications, such as
|
---|
| 139 | <application>Amarok</application> and it is recommend to use the shared
|
---|
| 140 | libraries whenever it is possible.
|
---|
[cd34755] | 141 | </para>
|
---|
[0d7900a] | 142 |
|
---|
[cd34755] | 143 | <para>
|
---|
| 144 | There are numerous options available to
|
---|
[4890200] | 145 | <command>cmake</command>. Check the output of the `<command>cmake .
|
---|
| 146 | -LH</command>` for additional customization options. See the <ulink
|
---|
| 147 | url="http://dev.mysql.com/doc/refman/5.6/en/source-configuration-options.html">
|
---|
| 148 | MySQL Documentation</ulink> for a full listing of all options.
|
---|
[cd34755] | 149 | </para>
|
---|
[0d7900a] | 150 |
|
---|
[cd34755] | 151 | <para>
|
---|
| 152 | If you want to build shared version of the embedded server library, apply
|
---|
| 153 | the following patch:
|
---|
| 154 | </para>
|
---|
[0d7900a] | 155 |
|
---|
[e3fec8f] | 156 | <screen><userinput>patch -Np1 -i ../mysql-&mysql-version;-embedded_library_shared-1.patch</userinput></screen>
|
---|
[0d7900a] | 157 |
|
---|
[cd34755] | 158 | <para>
|
---|
| 159 | Install <application>MySQL</application> by running the
|
---|
| 160 | following commands:
|
---|
| 161 | </para>
|
---|
[0d7900a] | 162 |
|
---|
[cd34755] | 163 | <screen><userinput>sed -i "/ADD_SUBDIRECTORY(sql\/share)/d" CMakeLists.txt &&
|
---|
| 164 | sed -i "s/ADD_SUBDIRECTORY(libmysql)/&\\nADD_SUBDIRECTORY(sql\/share)/" CMakeLists.txt &&
|
---|
| 165 | sed -i "s@data/test@\${INSTALL_MYSQLSHAREDIR}@g" sql/CMakeLists.txt &&
|
---|
| 166 | sed -i "s@data/mysql@\${INSTALL_MYSQLTESTDIR}@g" sql/CMakeLists.txt &&
|
---|
[13a9e84e] | 167 |
|
---|
| 168 | sed -i "s/srv_buf_size/srv_sort_buf_size/" storage/innobase/row/row0log.cc &&
|
---|
| 169 |
|
---|
[cd34755] | 170 | mkdir build &&
|
---|
[dc2b407] | 171 | cd build &&
|
---|
[13a9e84e] | 172 |
|
---|
[cd34755] | 173 | cmake -DCMAKE_BUILD_TYPE=Release \
|
---|
| 174 | -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
[e3fec8f] | 175 | -DINSTALL_DOCDIR=share/doc/mysql \
|
---|
| 176 | -DINSTALL_DOCREADMEDIR=share/doc/mysql \
|
---|
| 177 | -DINSTALL_INCLUDEDIR=include/mysql \
|
---|
| 178 | -DINSTALL_INFODIR=share/info \
|
---|
| 179 | -DINSTALL_MANDIR=share/man \
|
---|
| 180 | -DINSTALL_MYSQLDATADIR=/srv/mysql \
|
---|
| 181 | -DINSTALL_MYSQLSHAREDIR=share/mysql \
|
---|
| 182 | -DINSTALL_MYSQLTESTDIR=share/mysql/test \
|
---|
[4a395712] | 183 | -DINSTALL_PLUGINDIR=lib/mysql/plugin \
|
---|
[e3fec8f] | 184 | -DINSTALL_SBINDIR=sbin \
|
---|
| 185 | -DINSTALL_SCRIPTDIR=bin \
|
---|
| 186 | -DINSTALL_SQLBENCHDIR=share/mysql/bench \
|
---|
[4a395712] | 187 | -DINSTALL_SUPPORTFILESDIR=share/mysql \
|
---|
[e3fec8f] | 188 | -DMYSQL_DATADIR=/srv/mysql \
|
---|
[4890200] | 189 | -DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock \
|
---|
[cd34755] | 190 | -DSYSCONFDIR=/etc/mysql \
|
---|
[e3fec8f] | 191 | -DWITH_PERFSCHEMA_STORAGE_ENGINE=OFF \
|
---|
[4890200] | 192 | -DWITH_EXTRA_CHARSETS=complex \
|
---|
| 193 | -DWITH_LIBEVENT=system \
|
---|
[e3fec8f] | 194 | -DWITH_SSL=system \
|
---|
| 195 | .. &&
|
---|
[9c98f0e] | 196 | make</userinput></screen>
|
---|
[68196987] | 197 |
|
---|
[cd34755] | 198 | <para>
|
---|
[4890200] | 199 | To test the results, issue: <command>make test</command>.
|
---|
[cd34755] | 200 | </para>
|
---|
[867e611] | 201 |
|
---|
[cd34755] | 202 | <para>
|
---|
| 203 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 204 | </para>
|
---|
[e3fec8f] | 205 |
|
---|
[cd34755] | 206 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[e3fec8f] | 207 |
|
---|
[cd34755] | 208 | <tip>
|
---|
| 209 | <para>
|
---|
| 210 | The only documentation shipped in the source tarball are
|
---|
| 211 | <filename>mysql.info</filename> and man pages. You can download
|
---|
| 212 | various formats of the <application>MySQL</application>
|
---|
| 213 | Reference Manual from <ulink url="http://dev.mysql.com/doc/"/>.
|
---|
| 214 | </para>
|
---|
| 215 | </tip>
|
---|
[9b603d4] | 216 |
|
---|
[16e74d3] | 217 | </sect2>
|
---|
[08254fc] | 218 |
|
---|
[16e74d3] | 219 | <sect2 role="commands">
|
---|
| 220 | <title>Command Explanations</title>
|
---|
[9dfd852b] | 221 |
|
---|
[cd34755] | 222 | <para>
|
---|
[b4c88c39] | 223 | <command>sed -i ...</command>: First two seds fix client-only builds.
|
---|
| 224 | Following two seds set correct installation directories for some
|
---|
| 225 | components. Last one fixes a bug in the code.
|
---|
[cd34755] | 226 | </para>
|
---|
[e3fec8f] | 227 |
|
---|
[cd34755] | 228 | <para>
|
---|
[4890200] | 229 | <parameter>-DWITHOUT_SERVER=ON</parameter>: Use this switch if you don't
|
---|
| 230 | want the server and would like to build the client only.
|
---|
[cd34755] | 231 | </para>
|
---|
[e3fec8f] | 232 |
|
---|
[cd34755] | 233 | <para>
|
---|
[4890200] | 234 | <parameter>-DWITH_EXTRA_CHARSETS=complex</parameter>: This switch enables
|
---|
| 235 | support for the complex character sets.
|
---|
[cd34755] | 236 | </para>
|
---|
[e3fec8f] | 237 |
|
---|
[cd34755] | 238 | <para>
|
---|
[4890200] | 239 | <parameter>-DWITH_LIBEVENT=system</parameter>: This switch is used to
|
---|
| 240 | tell the build system to use installed <application>libevent</application>.
|
---|
| 241 | Remove it if you didn't install <application>libevent</application>.
|
---|
[cd34755] | 242 | </para>
|
---|
[0d7900a] | 243 |
|
---|
[cd34755] | 244 | <para>
|
---|
| 245 | <parameter>-DWITH_SSL=system</parameter>: This switch is used to tell the
|
---|
[4890200] | 246 | build system to use installed <application>OpenSSL</application>. Remove
|
---|
| 247 | it if you didn't install <application>OpenSSL</application>.
|
---|
[cd34755] | 248 | </para>
|
---|
[9ad2f59] | 249 |
|
---|
[22c7fe6] | 250 | </sect2>
|
---|
[08254fc] | 251 |
|
---|
[22c7fe6] | 252 | <sect2 role="configuration">
|
---|
| 253 | <title>Configuring MySQL</title>
|
---|
[08254fc] | 254 |
|
---|
[22c7fe6] | 255 | <sect3 id="mysql-config">
|
---|
| 256 | <title>Config Files</title>
|
---|
[08254fc] | 257 |
|
---|
[cd34755] | 258 | <para>
|
---|
| 259 | <filename>/etc/mysql/my.cnf</filename> and
|
---|
| 260 | <filename>~/.my.cnf</filename>
|
---|
| 261 | </para>
|
---|
[08254fc] | 262 |
|
---|
[22c7fe6] | 263 | <indexterm zone="mysql mysql-config">
|
---|
| 264 | <primary sortas="e-AA.my.cnf">~/.my.cnf</primary>
|
---|
| 265 | </indexterm>
|
---|
[08254fc] | 266 |
|
---|
[22c7fe6] | 267 | <indexterm zone="mysql mysql-config">
|
---|
[cd34755] | 268 | <primary sortas="e-etc-mysql-my.cnf">/etc/mysql/my.cnf</primary>
|
---|
[22c7fe6] | 269 | </indexterm>
|
---|
[08254fc] | 270 |
|
---|
[22c7fe6] | 271 | </sect3>
|
---|
[08254fc] | 272 |
|
---|
[22c7fe6] | 273 | <sect3>
|
---|
| 274 | <title>Configuration Information</title>
|
---|
[08254fc] | 275 |
|
---|
[4890200] | 276 | <note>
|
---|
| 277 | <para>
|
---|
| 278 | If you are upgrading from previous major version of
|
---|
| 279 | <application>MySQL</application>, be sure to consult
|
---|
| 280 | the <ulink
|
---|
| 281 | url="https://dev.mysql.com/doc/refman/5.6/en/upgrading-from-previous-series.html">
|
---|
| 282 | MySQL Reference Manual</ulink> for notes on
|
---|
| 283 | upgrading the software.
|
---|
| 284 | </para>
|
---|
| 285 | </note>
|
---|
| 286 |
|
---|
[cd34755] | 287 | <para>
|
---|
[4890200] | 288 | Create basic <filename>/etc/mysql/my.cnf</filename>
|
---|
| 289 | using the following command as the <systemitem
|
---|
[cd34755] | 290 | class="username">root</systemitem> user:
|
---|
| 291 | </para>
|
---|
| 292 |
|
---|
[7b1fad7] | 293 | <screen role="root"><userinput>install -v -dm 755 /etc/mysql &&
|
---|
[4a395712] | 294 | cat > /etc/mysql/my.cnf << "EOF"
|
---|
[4890200] | 295 | <literal># Begin /etc/mysql/my.cnf
|
---|
| 296 |
|
---|
| 297 | # The following options will be passed to all MySQL clients
|
---|
| 298 | [client]
|
---|
| 299 | #password = your_password
|
---|
| 300 | port = 3306
|
---|
| 301 | socket = /run/mysqld/mysqld.sock
|
---|
| 302 |
|
---|
| 303 | # The MySQL server
|
---|
| 304 | [mysqld]
|
---|
| 305 | port = 3306
|
---|
| 306 | socket = /run/mysqld/mysqld.sock
|
---|
| 307 | datadir = /srv/mysql
|
---|
| 308 | skip-external-locking
|
---|
[aa93d4fb] | 309 | key_buffer_size = 16M
|
---|
[4890200] | 310 | max_allowed_packet = 1M
|
---|
| 311 | sort_buffer_size = 512K
|
---|
| 312 | net_buffer_length = 16K
|
---|
| 313 | myisam_sort_buffer_size = 8M
|
---|
| 314 |
|
---|
| 315 | # Don't listen on a TCP/IP port at all.
|
---|
| 316 | skip-networking
|
---|
| 317 |
|
---|
| 318 | # required unique id between 1 and 2^32 - 1
|
---|
| 319 | server-id = 1
|
---|
| 320 |
|
---|
| 321 | # Uncomment the following if you are using BDB tables
|
---|
| 322 | #bdb_cache_size = 4M
|
---|
| 323 | #bdb_max_lock = 10000
|
---|
| 324 |
|
---|
| 325 | # Uncomment the following if you are using InnoDB tables
|
---|
| 326 | #innodb_data_home_dir = /srv/mysql
|
---|
| 327 | #innodb_data_file_path = ibdata1:10M:autoextend
|
---|
| 328 | #innodb_log_group_home_dir = /srv/mysql
|
---|
| 329 | # You can set .._buffer_pool_size up to 50 - 80 %
|
---|
| 330 | # of RAM but beware of setting memory usage too high
|
---|
| 331 | #innodb_buffer_pool_size = 16M
|
---|
| 332 | #innodb_additional_mem_pool_size = 2M
|
---|
| 333 | # Set .._log_file_size to 25 % of buffer pool size
|
---|
| 334 | #innodb_log_file_size = 5M
|
---|
| 335 | #innodb_log_buffer_size = 8M
|
---|
| 336 | #innodb_flush_log_at_trx_commit = 1
|
---|
| 337 | #innodb_lock_wait_timeout = 50
|
---|
| 338 |
|
---|
| 339 | [mysqldump]
|
---|
| 340 | quick
|
---|
| 341 | max_allowed_packet = 16M
|
---|
| 342 |
|
---|
| 343 | [mysql]
|
---|
| 344 | no-auto-rehash
|
---|
| 345 | # Remove the next comment character if you are not familiar with SQL
|
---|
| 346 | #safe-updates
|
---|
| 347 |
|
---|
| 348 | [isamchk]
|
---|
| 349 | key_buffer = 20M
|
---|
| 350 | sort_buffer_size = 20M
|
---|
| 351 | read_buffer = 2M
|
---|
| 352 | write_buffer = 2M
|
---|
| 353 |
|
---|
| 354 | [myisamchk]
|
---|
| 355 | key_buffer_size = 20M
|
---|
| 356 | sort_buffer_size = 20M
|
---|
| 357 | read_buffer = 2M
|
---|
| 358 | write_buffer = 2M
|
---|
| 359 |
|
---|
| 360 | [mysqlhotcopy]
|
---|
| 361 | interactive-timeout
|
---|
| 362 |
|
---|
| 363 | # End /etc/mysql/my.cnf</literal>
|
---|
| 364 | EOF</userinput></screen>
|
---|
[cd34755] | 365 |
|
---|
| 366 | <para>
|
---|
| 367 | You can now install a database and change the ownership to the
|
---|
| 368 | unprivileged user and group (perform as the <systemitem
|
---|
| 369 | class="username">root</systemitem> user):
|
---|
| 370 | </para>
|
---|
[08254fc] | 371 |
|
---|
[16e74d3] | 372 | <screen role="root"><userinput>mysql_install_db --basedir=/usr --datadir=/srv/mysql --user=mysql &&
|
---|
[cd34755] | 373 | chown -R mysql:mysql /srv/mysql</userinput></screen>
|
---|
[08254fc] | 374 |
|
---|
[cd34755] | 375 | <para>
|
---|
| 376 | Further configuration requires that the
|
---|
| 377 | <application>MySQL</application> server is running. Start
|
---|
| 378 | the server using the following commands as the <systemitem
|
---|
| 379 | class="username">root</systemitem> user:
|
---|
| 380 | </para>
|
---|
[08254fc] | 381 |
|
---|
[2f62a072] | 382 | <screen role="root"><userinput>install -v -m755 -o mysql -g mysql -d /run/mysqld &&
|
---|
[22c7fe6] | 383 | mysqld_safe --user=mysql 2>&1 >/dev/null &</userinput></screen>
|
---|
[08254fc] | 384 |
|
---|
[cd34755] | 385 | <para>
|
---|
| 386 | A default installation does not set up a password for the
|
---|
| 387 | administrator, so use the following command as the <systemitem
|
---|
| 388 | class="username">root</systemitem> user to set one. Replace
|
---|
| 389 | <replaceable><new-password></replaceable> with your own.
|
---|
| 390 | </para>
|
---|
[08254fc] | 391 |
|
---|
[3cb0c57] | 392 | <screen role="root"><userinput>mysqladmin -u root password <replaceable><new-password></replaceable></userinput></screen>
|
---|
[08254fc] | 393 |
|
---|
[cd34755] | 394 | <para>
|
---|
| 395 | Configuration of the server is now finished. Shut the server
|
---|
| 396 | down using the following command as the <systemitem
|
---|
| 397 | class="username">root</systemitem> user:
|
---|
| 398 | </para>
|
---|
[4b93ac2] | 399 |
|
---|
[22c7fe6] | 400 | <screen role="root"><userinput>mysqladmin -p shutdown</userinput></screen>
|
---|
[08254fc] | 401 |
|
---|
[22c7fe6] | 402 | </sect3>
|
---|
[08254fc] | 403 |
|
---|
[22c7fe6] | 404 | <sect3 id="mysql-init">
|
---|
| 405 | <title>Boot Script</title>
|
---|
[08254fc] | 406 |
|
---|
[cd34755] | 407 | <para>
|
---|
| 408 | Install the <filename>/etc/rc.d/init.d/mysql</filename> init script
|
---|
| 409 | included in the <xref linkend="bootscripts"/> package as
|
---|
| 410 | the <systemitem class="username">root</systemitem> user to start the
|
---|
| 411 | <application>MySQL</application> server during system boot-up.
|
---|
| 412 | </para>
|
---|
[08254fc] | 413 |
|
---|
[22c7fe6] | 414 | <indexterm zone="mysql mysql-init">
|
---|
| 415 | <primary sortas="f-mysql">mysql</primary>
|
---|
| 416 | </indexterm>
|
---|
[20f5e71a] | 417 |
|
---|
[22c7fe6] | 418 | <screen role="root"><userinput>make install-mysql</userinput></screen>
|
---|
[20f5e71a] | 419 |
|
---|
[22c7fe6] | 420 | </sect3>
|
---|
[08254fc] | 421 |
|
---|
[22c7fe6] | 422 | </sect2>
|
---|
[08254fc] | 423 |
|
---|
[22c7fe6] | 424 | <sect2 role="content">
|
---|
| 425 | <title>Contents</title>
|
---|
| 426 |
|
---|
| 427 | <segmentedlist>
|
---|
| 428 | <segtitle>Installed Programs</segtitle>
|
---|
| 429 | <segtitle>Installed Libraries</segtitle>
|
---|
| 430 | <segtitle>Installed Directories</segtitle>
|
---|
| 431 |
|
---|
| 432 | <seglistitem>
|
---|
[cd34755] | 433 | <seg>
|
---|
| 434 | innochecksum, msql2mysql, myisamchk, myisam_ftdump, myisamlog,
|
---|
| 435 | myisampack, my_print_defaults, mysql, mysqlaccess, mysqlaccess.conf,
|
---|
| 436 | mysqladmin, mysqlbinlog, mysqlbug, mysqlcheck, mysql_client_test,
|
---|
[4890200] | 437 | mysql_client_test_embedded, mysql_config, mysql_config_editor,
|
---|
| 438 | mysql_convert_table_format, mysqld, mysqld_multi, mysqld_safe, mysqldump,
|
---|
| 439 | mysqldumpslow, mysql_embedded, mysql_find_rows, mysql_fix_extensions,
|
---|
| 440 | mysqlhotcopy, mysqlimport, mysql_install_db, mysql_plugin,
|
---|
| 441 | mysql_secure_installation, mysql_setpermission, mysqlshow, mysqlslap,
|
---|
| 442 | mysqltest, mysqltest_embedded, mysql_tzinfo_to_sql, mysql_upgrade,
|
---|
| 443 | mysql_waitpid, mysql_zap, perror, replace, resolveip and
|
---|
| 444 | resolve_stack_dump
|
---|
[cd34755] | 445 | </seg>
|
---|
| 446 | <seg>
|
---|
[b4c88c39] | 447 | libmysqlclient.{so,a}, libmysqlclient_r.{so,a}, libmysqld.{so,a},
|
---|
| 448 | libmysqlservices.a and several under /usr/lib/mysql/plugin/
|
---|
[cd34755] | 449 | </seg>
|
---|
| 450 | <seg>
|
---|
| 451 | /etc/mysql,
|
---|
| 452 | /srv/mysql,
|
---|
| 453 | /usr/include/mysql,
|
---|
| 454 | /usr/lib/mysql,
|
---|
| 455 | /usr/share/doc/mysql and
|
---|
| 456 | /usr/share/mysql
|
---|
| 457 | </seg>
|
---|
[22c7fe6] | 458 | </seglistitem>
|
---|
| 459 | </segmentedlist>
|
---|
| 460 |
|
---|
| 461 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 462 |
|
---|
[cd34755] | 463 | <para>
|
---|
| 464 | Descriptions of all the programs and libraries would be several
|
---|
| 465 | pages long. Instead, consult the <filename>mysql.info</filename>
|
---|
| 466 | documentation or the on-line reference manual at <ulink
|
---|
[4890200] | 467 | url="http://dev.mysql.com/doc/refman/5.6/en/index.html"/>.
|
---|
[cd34755] | 468 | </para>
|
---|
[22c7fe6] | 469 |
|
---|
[cd34755] | 470 | <para>
|
---|
| 471 | The <application>Perl</application> DBI modules must be installed
|
---|
| 472 | for some of the <application>MySQL</application> support programs to
|
---|
| 473 | function properly.
|
---|
| 474 | </para>
|
---|
[22c7fe6] | 475 |
|
---|
| 476 | </sect2>
|
---|
[f45b1953] | 477 |
|
---|
| 478 | </sect1>
|
---|