<< previous page   --   table of contents   --   next page >>
| | | | | | | |
  • Return to Table of Contents
  • Table of Contents

    1. General Information
    2. MySQL Installation
    3. Tutorial Introduction
    4. Database Administration
    5. MySQL Optimisation
    6. MySQL Language Reference
    7. MySQL Table Types
    8. MySQL APIs
    9. Extending MySQL

    Chapter 2:  MySQL Installation 83 2.3.2  Applying Patches Sometimes  patches  appear  on  the  mailing  list  or  are  placed  in  the  patches  area  of  the MySQL web site (http://www.mysql.com/Downloads/Patches/). To apply a patch from the mailing list, save the message in which the patch appears in a le, change into the top-level directory of your MySQL source tree, and run these commands: shell> patch -p1 < patch-file-name shell> rm config.cache shell> make clean Patches from the FTP site are distributed as plain text les or as les compressed  with gzip.  Apply a plain patch as shown previously for mailing list patches.  To apply a com- pressed patch, change into the top-level directory of your MySQL source tree and run these commands: shell> gunzip < patch-file-name.gz | patch -p1 shell> rm config.cache shell> make clean After applying a patch, follow the instructions for a normal source install, beginning with the ./configure step.  After running the make install step, restart your MySQL server. You may need to bring down any currently running server before you run  make install. (Use  mysqladmin shutdown  to do this.)  Some systems do not allow you to install a new version of a program if it replaces the version that is currently executing. 2.3.3  Typical configure Options The configure script gives you a great deal of control over how you con gure your MySQL distribution.  Typically you do this using options on the configure command-line.  You can also a ect configure using certain environment variables.  See Appendix F [Environment variables], page 770.  For a list of options supported by configure, run this command: shell> ./configure --help Some of the more commonly-used configure options are described here:    To compile just the MySQL client libraries and client programs and not the server, use the --without-server option: shell> ./configure --without-server If you don't have a C++ compiler, mysql will not compile (it is the one client program that  requires  C++).   In  this  case,  you  can  remove  the  code  in  configure  that  tests for the C++ compiler and then run ./configure with the --without-server option. The compile step will still try to build mysql, but you can ignore any warnings about `mysql.cc'.  (If make stops, try make -k to tell it to continue with the rest of the build even if errors occur.)    If  you  want  to  get  an  embedded  MySQL  library  (libmysqld.a)  you  should  use  the --with-embedded-server option.    If you don't want your log les and database directories located under `/usr/local/var', use a configure command, something like one of these:
     

    Customer Support CentreMySQL Reference Manual

    Web Hosting Services
    UNIX WEB HOSTING
    MERCHANT ACCOUNTS
    DEDICATED SERVERS
    E-COMMERCE HOSTING
    SUPPORT & FAQ's
    TERMS OF USE
    Domain Services
    DOMAIN
    REGISTRATION
    MANAGE
    YOUR ACCOUNT
    SUPPORT & FAQ's
    TERMS OF USE
    Corporate Info
    ABOUT US
    OUR NETWORK
    CONTACT US
    SITE MAP
    Copyright © 2002 Dyntex Group, Inc. All Rights Reserved
  • Return to Table of Contents
  • Back to top

  • Web Hosting: Manuals & FAQ's

    1. Unix-Based Web Hosting
    2. Unix Dedicated Servers
    3. Windows Dedicated Servers
    4. CuteFTP User’s Guide
    5. CuteHTML User’s Guide
    6. WS_FTP Pro User's Guide
    7. Miva Order User's Guide
    8. Miva Merchant User's Guide