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