- Timestamp:
- 07/28/2004 06:47:21 AM (20 years ago)
- Branches:
- 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
- Children:
- 68df39bf
- Parents:
- 7172e4f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
content/databases/mysql.xml
r7172e4f r4b93ac2 17 17 18 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 19 <title>Introduction to <application>My<acronym>SQL</acronym></application> 20 </title> 21 22 <para><application>My<acronym>SQL</acronym></application> is a widely used and 23 fast <acronym>SQL</acronym> database server. It is a client/server 23 24 implementation that consists of a server daemon and many different 24 25 client programs and libraries.</para> … … 33 34 </sect3> 34 35 35 <sect3><title><application>My<acronym>SQL</acronym></application> dependencies</title> 36 <sect3><title>Additional downloads</title> 37 <itemizedlist spacing='compact'> 38 <listitem><para>Required Patch (for building against NPTL): <ulink 39 url="&patch-root;/mysql-&mysql-version;-nptl-1.patch"/></para></listitem> 40 </itemizedlist></sect3> 41 42 <sect3><title><application>My<acronym>SQL</acronym></application> dependencies 43 </title> 36 44 <sect4><title>Optional</title> 37 <para><xref linkend="openssl"/> and38 <xref linkend=" tcpwrappers"/>45 <para><xref linkend="openssl"/>, <xref linkend="tcpwrappers"/>, 46 <xref linkend="which"/> and <xref linkend="ORBit"/> 39 47 </para></sect4> 40 48 </sect3> … … 43 51 44 52 <sect2> 45 <title>Installation of <application>My<acronym>SQL</acronym></application></title> 53 <title>Installation of <application>My<acronym>SQL</acronym></application> 54 </title> 46 55 47 56 <para>For security reasons, running the server as an unprivileged user … … 51 60 useradd -c mysql -d /dev/null -g mysql -s /bin/false mysql</command></userinput></screen> 52 61 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 && 62 <para>Build and install <application>My<acronym>SQL</acronym></application> by 63 running the following commands:</para> 64 65 <screen><userinput><command>patch -Np1 -i ../mysql-&mysql-version;-nptl-1.patch && 66 ./configure --prefix=/usr --sysconfdir=/etc \ 67 --libexecdir=/usr/sbin --localstatedir=/srv/mysql \ 68 --enable-thread-safe-client --enable-assembler \ 69 --without-readline --without-debug \ 70 --enable-local-infile --without-bench && 59 71 make testdir=/usr/lib/mysql/mysql-test && 60 make testdir=/usr/lib/mysql/mysql-test install</command></userinput></screen> 61 62 <para>Packages that depend on <application>MySQL</application> need the shared 63 libraries available at run-time:</para> 64 65 <screen><userinput><command>cd /usr/lib && 72 make testdir=/usr/lib/mysql/mysql-test install && 73 cd /usr/lib && 66 74 ln -sf mysql/libmysqlclient{,_r}.so* .</command></userinput></screen> 75 76 </sect2> 77 78 <sect2> 79 <title>Command explanations</title> 80 81 <para><parameter>--libexecdir=/usr/sbin</parameter>: This switch installs the 82 <command>mysqld</command> daemon in an appropriate location.</para> 83 84 <para><parameter>--localstatedir=/srv/mysql</parameter>: This switch forces 85 <application>My<acronym>SQL</acronym></application> to use 86 <filename class='directory'>/srv/mysql</filename> for database files and other 87 variable data.</para> 88 89 <para><parameter>--enable-thread-safe-client</parameter>: This switch compiles a 90 thread-safe <application>My<acronym>SQL</acronym></application> client library. 91 </para> 92 93 <para><parameter>--enable-assembler</parameter>: This switch allows using 94 assembler versions of some string functions.</para> 95 96 <para><parameter>--without-readline</parameter>: This switch forces the build 97 to use the system copy of <application>readline</application> instead of the 98 bundled copy.</para> 99 100 <para><option>--enable-local-infile</option>: This switch enables the 101 LOAD DATA INFILE <acronym>SQL</acronym> statement.</para> 102 103 <para><option>--without-bench</option>: This switch skips building the 104 benchmark suite.</para> 105 106 <para><command>make testdir=...</command>: This installs the test suite in 107 <filename class='directory'>/usr/lib/mysql/mysql-test</filename>. 108 <acronym>BLFS</acronym> is currently seeking a method to omit the installation 109 of the test suite altogether.</para> 110 111 <para><command>ln -sf mysql/libmysqlclient{,_r}.so* .</command>: This commands 112 makes the <application>My<acronym>SQL</acronym></application> shared libraries 113 available to other packages at run-time.</para> 67 114 68 115 </sect2> … … 92 139 93 140 <screen><userinput><command>mysql_install_db && 94 chown -R mysql:mysql /var/lib/mysql</command></userinput></screen> 95 96 <para>Further configuration requires that the mysql server be running:</para> 141 chown -R mysql:mysql /srv/mysql</command></userinput></screen> 142 143 <para>Further configuration requires that the 144 <application>My<acronym>SQL</acronym></application> server be running:</para> 97 145 98 146 <screen><userinput><command>mysqld_safe --user=mysql 2>&1 >/dev/null &</command></userinput></screen> 99 147 100 <para>A default installation does not setup a password for the 101 administrator, so use the following command to set one. Replace <replaceable>[new-password]</replaceable> 102 with your own.</para>148 <para>A default installation does not setup a password for the administrator, 149 so use the following command to set one. Replace 150 <replaceable>[new-password]</replaceable> with your own.</para> 103 151 104 152 <!-- … … 129 177 130 178 <para>Install the <filename>/etc/rc.d/init.d/mysql</filename> 131 init script included in the <xref linkend="intro-important-bootscripts"/> package.</para> 132 179 init script included in the <xref linkend="intro-important-bootscripts"/> 180 package.</para> 181 133 182 <screen><userinput><command>make install-mysql</command></userinput></screen> 134 183 … … 144 193 isamchk</command>, <command> 145 194 isamlog</command>, <command> 195 make_win_binary_distribution</command>, <command> 146 196 make_win_src_distribution</command>, <command> 147 197 msql2mysql</command>, <command> 148 198 my_print_defaults</command>, <command> 199 myisam_ftdump</command>, <command> 149 200 myisamchk</command>, <command> 150 201 myisamlog</command>, <command> … … 192 243 libmyisammrg</filename>, <filename class="libraryfile"> 193 244 libmysqlclient</filename>, <filename class="libraryfile"> 245 libmysqlclient_r</filename>, <filename class="libraryfile"> 194 246 libmystrings</filename>, <filename class="libraryfile"> 195 247 libmysys</filename>, <filename class="libraryfile"> … … 201 253 <sect2><title>Description</title> 202 254 203 <para>A package listing would be several pages long, we suggest 204 consulting the <application>My<acronym>SQL</acronym></application> documentation for full details, instead.</para> 205 206 <para>Certain <application>My<acronym>SQL</acronym></application> 207 support programs may require the <application>Perl</application> DBI modules to be installed to function properly.</para> 255 <para>A package listing would be several pages long. Consult the 256 <application>My<acronym>SQL</acronym></application> documentation for full 257 details instead.</para> 258 259 <para>Certain <application>My<acronym>SQL</acronym></application> support 260 programs may require the <application>Perl</application> DBI modules to be 261 installed to function properly.</para> 208 262 209 263 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.