source: content/databases/mysql.xml@ 0931098

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 0931098 was 08254fc, checked in by Bruce Dubbs <bdubbs@…>, 20 years ago

New XML - Part VII

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2306 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY mysql-download-http "http://mysql.he.net/Downloads/MySQL-4.0/mysql-&mysql-version;.tar.gz">
8 <!ENTITY mysql-download-ftp "ftp://mirror.mcs.anl.gov/pub/mysql/Downloads/MySQL-4.0/mysql-&mysql-version;.tar.gz">
9 <!ENTITY mysql-size "13.5 MB">
10 <!ENTITY mysql-buildsize "98.7 MB">
11 <!ENTITY mysql-time "3.43 SBU">
12]>
13
14<sect1 id="mysql" xreflabel="MySQL-&mysql-version;">
15<?dbhtml filename="mysql.html"?>
16<title>MySQL-&mysql-version;</title>
17
18<sect2>
19<title>Introduction to <application>My<acronym>SQL</acronym></application></title>
20
21<para><application>My<acronym>SQL</acronym></application> is a widely used and fast
22<acronym>SQL</acronym> database server. It is a client/server
23implementation that consists of a server daemon and many different
24client programs and libraries.</para>
25
26<sect3><title>Package information</title>
27<itemizedlist spacing='compact'>
28<listitem><para>Download (HTTP): <ulink url="&mysql-download-http;"/></para></listitem>
29<listitem><para>Download (FTP): <ulink url="&mysql-download-ftp;"/></para></listitem>
30<listitem><para>Download size: &mysql-size;</para></listitem>
31<listitem><para>Estimated Disk space required: &mysql-buildsize;</para></listitem>
32<listitem><para>Estimated build time: &mysql-time;</para></listitem></itemizedlist>
33</sect3>
34
35<sect3><title><application>My<acronym>SQL</acronym></application> dependencies</title>
36<sect4><title>Optional</title>
37<para><xref linkend="readline"/>, <xref linkend="openssl"/> and
38<xref linkend="tcpwrappers"/>
39</para></sect4>
40</sect3>
41
42</sect2>
43
44<sect2>
45<title>Installation of <application>My<acronym>SQL</acronym></application></title>
46
47<para>For security reasons, running the server as an unprivileged user
48and group is strongly encouraged:</para>
49
50<screen><userinput><command>groupadd mysql &amp;&amp;
51useradd -c mysql -d /dev/null -g mysql -s /bin/false mysql</command></userinput></screen>
52
53<para>Build and install <application>My<acronym>SQL</acronym></application> by running the following commands:</para>
54
55<screen><userinput><command>./configure --prefix=/usr --sysconfdir=/etc \
56 --libexecdir=/usr/sbin --localstatedir=/var/lib/mysql \
57 --enable-thread-safe-client --enable-local-infile \
58 --enable-assembler --without-debug --without-bench &amp;&amp;
59make testdir=/usr/lib/mysql/mysql-test &amp;&amp;
60make testdir=/usr/lib/mysql/mysql-test install</command></userinput></screen>
61
62<para>Packages that depend on <application>MySQL</application> need the shared
63libraries available at run-time:</para>
64
65<screen><userinput><command>cd /usr/lib &amp;&amp;
66ln -sf mysql/libmysqlclient{,_r}.so* .</command></userinput></screen>
67
68</sect2>
69
70<sect2>
71<title>Configuring <application>My<acronym>SQL</acronym></application></title>
72
73<sect3>
74<title>Config files</title>
75
76<para><filename>/etc/my.cnf</filename>, <filename>~/.my.cnf</filename></para>
77
78</sect3>
79
80<sect3>
81<title>Configuration Information</title>
82
83<para>There are several default configuration files available in
84<filename class="directory">/usr/share/mysql</filename> which you can
85use. Create <filename>/etc/my.cnf</filename> using the following
86command:</para>
87
88<screen><userinput><command>cp /usr/share/mysql/my-medium.cnf /etc/my.cnf</command></userinput></screen>
89
90<para>You can now install a database and change the ownership to the
91unprivileged user and group.</para>
92
93<screen><userinput><command>mysql_install_db &amp;&amp;
94chown -R mysql:mysql /var/lib/mysql</command></userinput></screen>
95
96<para>Further configuration requires that the mysql server be running:</para>
97
98<screen><userinput><command>mysqld_safe --user=mysql 2&gt;&amp;1 &gt;/dev/null &amp;</command></userinput></screen>
99
100<para>A default installation does not setup a password for the
101administrator, so use the following command to set one. Replace <replaceable>[new-password]</replaceable>
102with your own.</para>
103
104<!--
105<screen><userinput><command>mysql -uroot mysql</command></userinput>
106Welcome to the MySQL monitor. Commands end with ; or \g.
107Your MySQL connection id is 2 to server version: 3.23.51-log
108
109Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
110
111<prompt>mysql&gt;</prompt> <userinput><command>UPDATE user SET password=password('<replaceable>new-password</replaceable>') WHERE user='root';</command></userinput>
112Query OK, 2 rows affected (0.00 sec)
113Rows matched: 2 Changed: 2 Warnings: 0
114
115<prompt>mysql&gt;</prompt> <userinput><command>FLUSH PRIVILEGES;</command></userinput>
116Query OK, 0 rows affected (0.00 sec)
117
118<prompt>mysql&gt;</prompt> <userinput><command>EXIT;</command></userinput>
119bye
120</screen>
121-->
122
123<screen><userinput><command>mysqladmin -u root password <replaceable>[new-password]</replaceable></command></userinput></screen>
124
125<para>Configuration of the server is now finished. Shut the server down
126using the following command:</para>
127
128<screen><userinput><command>mysqladmin -p shutdown</command></userinput></screen>
129
130<para>Install the <filename>/etc/rc.d/init.d/mysql</filename>
131init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
132
133<screen><userinput><command>make install-mysql</command></userinput></screen>
134
135</sect3>
136
137</sect2>
138
139<sect2>
140<title>Contents</title>
141
142<para>The <application>My<acronym>SQL</acronym></application> package contains <command>
143comp_err</command>, <command>
144isamchk</command>, <command>
145isamlog</command>, <command>
146make_win_src_distribution</command>, <command>
147msql2mysql</command>, <command>
148my_print_defaults</command>, <command>
149myisamchk</command>, <command>
150myisamlog</command>, <command>
151myisampack</command>, <command>
152mysql</command>, <command>
153mysql_config</command>, <command>
154mysql_convert_table_format</command>, <command>
155mysql_explain_log</command>, <command>
156mysql_find_rows</command>, <command>
157mysql_fix_extensions</command>, <command>
158mysql_fix_privilege_tables</command>, <command>
159mysql_install</command>, <command>
160mysql_install_db</command>, <command>
161mysql_secure_installation</command>, <command>
162mysql_setpermission</command>, <command>
163mysql_tableinfo</command>, <command>
164mysql_waitpid</command>, <command>
165mysql_zap</command>, <command>
166mysqlacess</command>,<command>
167mysqladmin</command>, <command>
168mysqlbinlog</command>, <command>
169mysqlbug</command>, <command>
170mysqlcheck</command>, <command>
171mysqld</command>, <command>
172mysqld_multi</command>, <command>
173mysqld_safe</command>, <command>
174mysqldump</command>, <command>
175mysqldumpslow</command>, <command>
176mysqlhotcopy</command>, <command>
177mysqlimport</command>, <command>
178mysqlmanager</command>, <command>
179mysqlmanager-pwgen</command>, <command>
180mysqlmanagerc</command>, <command>
181mysqlshow</command>, <command>
182mysqltest</command>, <command>
183pack_isam</command>, <command>
184perror</command>, <command>
185replace</command>, <command>
186resolve_stack_dump</command>, <command>
187resolveip</command>, <filename class="libraryfile">
188libdbug</filename>, <filename class="libraryfile">
189libheap</filename>, <filename class="libraryfile">
190libmerge</filename>, <filename class="libraryfile">
191libmyisam</filename>, <filename class="libraryfile">
192libmyisammrg</filename>, <filename class="libraryfile">
193libmysqlclient</filename>, <filename class="libraryfile">
194libmystrings</filename>, <filename class="libraryfile">
195libmysys</filename>, <filename class="libraryfile">
196libnisam</filename> and <filename class="libraryfile">
197libvio</filename>.</para>
198
199</sect2>
200
201<sect2><title>Description</title>
202
203<para>A package listing would be several pages long, we suggest
204consulting the <application>My<acronym>SQL</acronym></application> documentation for full details, instead.</para>
205
206<para>Certain <application>My<acronym>SQL</acronym></application>
207support programs may require the <application>Perl</application> DBI modules to be installed to function properly.</para>
208
209</sect2>
210
211</sect1>
Note: See TracBrowser for help on using the repository browser.