From 22c7fe654d928d6ff033baaee8b1fada63baa0be Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Mon, 16 May 2005 19:19:07 +0000 Subject: [PATCH] Tagged mysql.xml git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@4323 af4574ff-66df-0310-9fd7-8a98e5e911e0 --- server/databases/mysql.xml | 371 ++++++++++++++++++++----------------- 1 file changed, 197 insertions(+), 174 deletions(-) diff --git a/server/databases/mysql.xml b/server/databases/mysql.xml index fa562c64a6..c84ad60239 100644 --- a/server/databases/mysql.xml +++ b/server/databases/mysql.xml @@ -6,249 +6,272 @@ - + ]> - -$LastChangedBy$ -$Date$ - - -MySQL-&mysql-version; - -MySQL + - -Introduction to <application>My<acronym>SQL</acronym></application> - + + $LastChangedBy$ + $Date$ + -MySQL is a widely used and -fast SQL database server. It is a client/server -implementation that consists of a server daemon and many different -client programs and libraries. + MySQL-&mysql-version; -Package information - -Download (HTTP): - -Download (FTP): - -Download MD5 sum: &mysql-md5; -Download size: &mysql-size; -Estimated disk space required: -&mysql-buildsize; -Estimated build time: -&mysql-time; - + + MySQL + -<application>My<acronym>SQL</acronym></application> dependencies - -Optional -, -, -libedit -(as an alternative to readline), - (detected only if is -installed), - and - - - + + Introduction to MySQL - + MySQL is a widely used and fast SQL + database server. It is a client/server implementation that consists of a + server daemon and many different client programs and libraries. - -Installation of <application>My<acronym>SQL</acronym></application> - + Package Information + + + Download (HTTP): + + + Download (FTP): + + + Download MD5 sum: &mysql-md5sum; + + + Download size: &mysql-size; + + + Estimated disk space required: &mysql-buildsize; + + + Estimated build time: &mysql-time; + + -For security reasons, running the server as an unprivileged user -and group is strongly encouraged: + TEMPLATE Dependencies -groupadd mysql && -useradd -c "MySQL Server" -d /dev/null -g mysql -s /bin/false mysql + Optional + , + , + libedit + (as an alternative to readline), + (detected only if is + installed), + and + -Build and install MySQL by -running the following commands: + -CPPFLAGS="-D_GNU_SOURCE" ./configure --prefix=/usr --sysconfdir=/etc \ + + Installation of MySQL + + For security reasons, running the server as an unprivileged user + and group is strongly encouraged: + +groupadd mysql && +useradd -c "MySQL Server" -d /dev/null -g mysql -s /bin/false mysql + + Build and install MySQL by + running the following commands: + +CPPFLAGS="-D_GNU_SOURCE" ./configure --prefix=/usr --sysconfdir=/etc \ --libexecdir=/usr/sbin --localstatedir=/srv/mysql \ --enable-thread-safe-client --enable-assembler \ --enable-local-infile --with-named-thread-libs=-lpthread \ --with-unix-socket-path=/var/run/mysql/mysql.sock \ --without-debug --without-bench --without-readline && -make testdir=/usr/lib/mysql/mysql-test +make testdir=/usr/lib/mysql/mysql-test -To test the results, issue: make test. + To test the results, issue: make test. -Now, as the root user: + Now, as the root user: -make testdir=/usr/lib/mysql/mysql-test install && +make testdir=/usr/lib/mysql/mysql-test install && install -v -d -m755 /usr/share/mysql/Docs/Images && install -v -m644 Docs/manual{,_toc}.html \ Docs/manual.txt /usr/share/mysql/Docs && install -v -m644 Docs/Images/*.{jpg,gif} /usr/share/mysql/Docs/Images && cd /usr/lib && -ln -v -sf mysql/libmysqlclient{,_r}.so* . +ln -v -sf mysql/libmysqlclient{,_r}.so* . - + - -Command explanations + + Command Explanations ---libexecdir=/usr/sbin: This switch installs the -mysqld daemon in an appropriate location. + --libexecdir=/usr/sbin: This switch installs + the mysqld daemon in an appropriate location. ---localstatedir=/srv/mysql: This switch forces -MySQL to use -/srv/mysql for database files and other -variable data. + --localstatedir=/srv/mysql: This switch + forces MySQL to use + /srv/mysql for database files and + other variable data. ---enable-thread-safe-client: This switch compiles a -thread-safe MySQL client library. - + --enable-thread-safe-client: This + switch compiles a thread-safe MySQL client + library. ---enable-assembler: This switch allows using -assembler versions of some string functions. + --enable-assembler: This switch allows using + assembler versions of some string functions. ---enable-local-infile: This switch enables the -LOAD DATA INFILE SQL statement. + --enable-local-infile: This switch enables + the LOAD DATA INFILE SQL statement. -CPPFLAGS="-D_GNU_SOURCE" ---with-named-thread-libs=-lpthread: This environment variable and -configure switch enable building on NPTL systems. + CPPFLAGS="-D_GNU_SOURCE" + --with-named-thread-libs=-lpthread: This environment variable + and configure switch enable building on NPTL systems. ---with-unix-socket-path=/var/run/mysql: -This switch puts the unix-domain socket into /var/run/mysql directory instead of default -/tmp. + --with-unix-socket-path=/var/run/mysql: + This switch puts the unix-domain socket into /var/run/mysql directory instead of default + /tmp. ---without-bench: This switch skips building the -benchmark suite. + --without-bench: This switch skips building + the benchmark suite. ---without-readline: This switch forces the build -to use the system copy of readline instead of the -bundled copy. + --without-readline: This switch forces the + build to use the system copy of readline instead + of the bundled copy. -make testdir=...: This installs the test suite in -/usr/lib/mysql/mysql-test. -BLFS is currently seeking a method to omit the installation -of the test suite altogether. + make testdir=...: This installs the test suite in + /usr/lib/mysql/mysql-test. + BLFS is currently seeking a method to omit the installation + of the test suite altogether. -ln -sf mysql/libmysqlclient{,_r}.so* .: This command -makes the MySQL shared libraries -available to other packages at run-time. + ln -sf mysql/libmysqlclient{,_r}.so* .: This + command makes the MySQL shared libraries + available to other packages at run-time. -: This switch adds tcpwrappers -support to MySQL. + : This switch adds tcpwrappers + support to MySQL. -: This switch adds OpenSSL support -to MySQL. + : This switch adds OpenSSL support + to MySQL. - + - -Configuring <application>My<acronym>SQL</acronym></application> + + Configuring MySQL - -Config files + + Config Files -/etc/my.cnf, ~/.my.cnf - -~/.my.cnf - -/etc/my.cnf + /etc/my.cnf and + ~/.my.cnf - + + ~/.my.cnf + - -Configuration Information + + /etc/my.cnf + -There are several default configuration files available in -/usr/share/mysql which you can -use. Create /etc/my.cnf using the following -command as the root user: + -install -v -m644 /usr/share/mysql/my-medium.cnf /etc/my.cnf + + Configuration Information -You can now install a database and change the ownership to the -unprivileged user and group (perform as the root user): + There are several default configuration files available in + /usr/share/mysql which you can + use. Create /etc/my.cnf using the following command + as the root user: -mysql_install_db --user=mysql && -chgrp -v mysql /srv/mysql{,/test,/mysql} +install -v -m644 /usr/share/mysql/my-medium.cnf /etc/my.cnf -Further configuration requires that the -MySQL server be running. Start -the server using the following commands as the root user: + You can now install a database and change the ownership to the + unprivileged user and group (perform as the root user): -install -v -m750 -o mysql -g mysql -d /var/run/mysql && -mysqld_safe --user=mysql 2>&1 >/dev/null & +mysql_install_db --user=mysql && +chgrp -v mysql /srv/mysql{,/test,/mysql} -A default installation does not setup a password for the administrator, -so use the following command as the root user to set one. Replace -[new-password] with your own. + Further configuration requires that the + MySQL server be running. Start + the server using the following commands as the root user: -mysqladmin -u root password [new-password] +install -v -m750 -o mysql -g mysql -d /var/run/mysql && +mysqld_safe --user=mysql 2>&1 >/dev/null & -Configuration of the server is now finished. Shut the server down -using the following command as the root user: + A default installation does not setup a password for the + administrator, so use the following command as the root user to set one. Replace + [new-password] with your own. -mysqladmin -p shutdown +mysqladmin -u root password [new-password] -Install the /etc/rc.d/init.d/mysql -init script included in the -package as the root user to start the MySQL server -during system boot-up. - -mysql + Configuration of the server is now finished. Shut the server + down using the following command as the root user: -make install-mysql +mysqladmin -p shutdown - + - + + Boot Script - -Contents + Install the /etc/rc.d/init.d/mysql init script + included in the package as + the root user to start the + MySQL server during system boot-up. - -Installed Programs -Installed Libraries -Installed Directories + + mysql + - -comp_err, isamchk, isamlog, make_win_binary_distribution, -make_win_src_distribution, msql2mysql, my_print_defaults, myisam_ftdump, -myisamchk, myisamlog, myisampack, mysql, mysql_client_test, mysql_config, -mysql_convert_table_format, mysql_create_system_tables, mysql_explain_log, -mysql_find_rows, mysql_fix_extensions, mysql_fix_privilege_tables, -mysql_install_db, mysql_secure_installation, mysql_setpermission, -mysql_tableinfo, mysql_tzinfo_to_sql, mysql_waitpid, mysql_zap, mysqlaccess, -mysqladmin, mysqlbinlog, mysqlbug, mysqlcheck, mysqld, mysqld_multi, -mysqld_safe, mysqldump, mysqldumpslow, mysqlhotcopy, mysqlimport, -mysqlmanager, mysqlmanager-pwgen, mysqlmanagerc, mysqlshow, mysqltest, -pack_isam, perror, replace, resolve_stack_dump and resolveip -libdbug.a, libheap.a, libmerge.a, libmyisam.a, libmyisammrg.a, -libmysqlclient.[so,a], libmysqlclient_r.[so,a], libmystrings.a, libmysys.a, -libnisam.a and libvio.a -/srv/mysql, /usr/include/mysql, /usr/lib/mysql, /usr/share/mysql and -/var/run/mysql - - +make install-mysql -Short description -Descriptions of all the programs and libraries would be several pages -long. Instead, consult the MySQL -documentation for full details. + -Certain MySQL support -programs may require the Perl DBI modules to be -installed to function properly. - + - + + Contents + + + Installed Programs + Installed Libraries + Installed Directories + + + comp_err, isamchk, isamlog, make_win_binary_distribution, + make_win_src_distribution, msql2mysql, my_print_defaults, myisam_ftdump, + myisamchk, myisamlog, myisampack, mysql, mysql_client_test, mysql_config, + mysql_convert_table_format, mysql_create_system_tables, mysql_explain_log, + mysql_find_rows, mysql_fix_extensions, mysql_fix_privilege_tables, + mysql_install_db, mysql_secure_installation, mysql_setpermission, + mysql_tableinfo, mysql_tzinfo_to_sql, mysql_waitpid, mysql_zap, mysqlaccess, + mysqladmin, mysqlbinlog, mysqlbug, mysqlcheck, mysqld, mysqld_multi, + mysqld_safe, mysqldump, mysqldumpslow, mysqlhotcopy, mysqlimport, + mysqlmanager, mysqlmanager-pwgen, mysqlmanagerc, mysqlshow, mysqltest, + pack_isam, perror, replace, resolve_stack_dump, and resolveip + libdbug.a, libheap.a, libmerge.a, libmyisam.a, libmyisammrg.a, + libmysqlclient.[so,a], libmysqlclient_r.[so,a], libmystrings.a, libmysys.a, + libnisam.a, and libvio.a + /srv/mysql, /usr/include/mysql, /usr/lib/mysql, /usr/share/mysql, and + /var/run/mysql + + + + Short Descriptions + + Descriptions of all the programs and libraries would be several + pages long. Instead, consult the MySQL + documentation for full details. + + Certain MySQL support programs may + require the Perl DBI modules to be + installed to function properly. + +