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