Changeset 08254fc for content/databases/mysql.xml
- Timestamp:
- 06/12/2004 11:57:50 PM (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:
- 0931098
- Parents:
- d3edf27
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
content/databases/mysql.xml
rd3edf27 r08254fc 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 1 14 <sect1 id="mysql" xreflabel="MySQL-&mysql-version;"> 2 15 <?dbhtml filename="mysql.html"?> 3 16 <title>MySQL-&mysql-version;</title> 4 17 5 &mysql-intro; 6 &mysql-inst; 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 23 implementation that consists of a server daemon and many different 24 client 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 48 and group is strongly encouraged:</para> 49 50 <screen><userinput><command>groupadd mysql && 51 useradd -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 && 59 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 && 66 ln -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 85 use. Create <filename>/etc/my.cnf</filename> using the following 86 command:</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 91 unprivileged user and group.</para> 92 93 <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> 97 98 <screen><userinput><command>mysqld_safe --user=mysql 2>&1 >/dev/null &</command></userinput></screen> 99 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> 103 7 104 <!-- 8 &mysql-exp; 105 <screen><userinput><command>mysql -uroot mysql</command></userinput> 106 Welcome to the MySQL monitor. Commands end with ; or \g. 107 Your MySQL connection id is 2 to server version: 3.23.51-log 108 109 Type 'help;' or '\h' for help. Type '\c' to clear the buffer. 110 111 <prompt>mysql></prompt> <userinput><command>UPDATE user SET password=password('<replaceable>new-password</replaceable>') WHERE user='root';</command></userinput> 112 Query OK, 2 rows affected (0.00 sec) 113 Rows matched: 2 Changed: 2 Warnings: 0 114 115 <prompt>mysql></prompt> <userinput><command>FLUSH PRIVILEGES;</command></userinput> 116 Query OK, 0 rows affected (0.00 sec) 117 118 <prompt>mysql></prompt> <userinput><command>EXIT;</command></userinput> 119 bye 120 </screen> 9 121 --> 10 &mysql-config; 11 &mysql-desc; 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 126 using 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> 131 init 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> 143 comp_err</command>, <command> 144 isamchk</command>, <command> 145 isamlog</command>, <command> 146 make_win_src_distribution</command>, <command> 147 msql2mysql</command>, <command> 148 my_print_defaults</command>, <command> 149 myisamchk</command>, <command> 150 myisamlog</command>, <command> 151 myisampack</command>, <command> 152 mysql</command>, <command> 153 mysql_config</command>, <command> 154 mysql_convert_table_format</command>, <command> 155 mysql_explain_log</command>, <command> 156 mysql_find_rows</command>, <command> 157 mysql_fix_extensions</command>, <command> 158 mysql_fix_privilege_tables</command>, <command> 159 mysql_install</command>, <command> 160 mysql_install_db</command>, <command> 161 mysql_secure_installation</command>, <command> 162 mysql_setpermission</command>, <command> 163 mysql_tableinfo</command>, <command> 164 mysql_waitpid</command>, <command> 165 mysql_zap</command>, <command> 166 mysqlacess</command>,<command> 167 mysqladmin</command>, <command> 168 mysqlbinlog</command>, <command> 169 mysqlbug</command>, <command> 170 mysqlcheck</command>, <command> 171 mysqld</command>, <command> 172 mysqld_multi</command>, <command> 173 mysqld_safe</command>, <command> 174 mysqldump</command>, <command> 175 mysqldumpslow</command>, <command> 176 mysqlhotcopy</command>, <command> 177 mysqlimport</command>, <command> 178 mysqlmanager</command>, <command> 179 mysqlmanager-pwgen</command>, <command> 180 mysqlmanagerc</command>, <command> 181 mysqlshow</command>, <command> 182 mysqltest</command>, <command> 183 pack_isam</command>, <command> 184 perror</command>, <command> 185 replace</command>, <command> 186 resolve_stack_dump</command>, <command> 187 resolveip</command>, <filename class="libraryfile"> 188 libdbug</filename>, <filename class="libraryfile"> 189 libheap</filename>, <filename class="libraryfile"> 190 libmerge</filename>, <filename class="libraryfile"> 191 libmyisam</filename>, <filename class="libraryfile"> 192 libmyisammrg</filename>, <filename class="libraryfile"> 193 libmysqlclient</filename>, <filename class="libraryfile"> 194 libmystrings</filename>, <filename class="libraryfile"> 195 libmysys</filename>, <filename class="libraryfile"> 196 libnisam</filename> and <filename class="libraryfile"> 197 libvio</filename>.</para> 198 199 </sect2> 200 201 <sect2><title>Description</title> 202 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> 208 209 </sect2> 12 210 13 211 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.