<< 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

    508 MySQL Technical Reference for Version 4.0.3 A simple `my.cnf' example.  Suppose you have a computer with 128 MB RAM and one hard disk.  Below is an example of possible con guration parameters in `my.cnf' or `my.ini' for InnoDB.  We  assume  you  are  running  MySQL-Max-3.23.50  or  later,  or  MySQL-4.0.2  or later.  This example suits most users, both on Unix and Windows, who do not want to dis- tribute  InnoDB  data les  and  log   les  on  several  disks.   This  creates  an  auto-extending data   le  `ibdata1'  and  two  InnoDB  log   les  `ib_logfile0'  and  `ib_logfile1'  to  the datadir  of  MySQL  (typically  `/mysql/data').   Also  the  small  archived  InnoDB  log   le `ib_arch_log_0000000000' ends up in the datadir. [mysqld] # You can write your other MySQL server options here # ... # Data file(s) must be able to # hold your data and indexes. # Make sure you have enough # free disk space. innodb_data_file_path = ibdata1:10M:autoextend # Set buffer pool size to # 50 - 80 % of your computer's # memory set-variable = innodb_buffer_pool_size=70M set-variable = innodb_additional_mem_pool_size=10M # Set the log file size to about # 25 % of the buffer pool size set-variable = innodb_log_file_size=20M set-variable = innodb_log_buffer_size=8M # Set ..flush_log_at_trx_commit # to 0 if you can afford losing # some last transactions innodb_flush_log_at_trx_commit=1 Check that the MySQL server has the rights to create les in datadir. Note that data les must be  <  2G in some le systems!  The combined size of the log les must be < 4G. The combined size of data les must be >= 10 MB. When you for the rst time create an InnoDB database, it is best that you start the MySQL server  from  the  command  prompt.   Then  InnoDB  will  print  the  information  about  the database creation to the screen, and you see what is happening. See below next section what the printout should look like.  For example, in Windows you can start `mysqld-max.exe' with: your-path-to-mysqld>mysqld-max --console Where to put `my.cnf' or `my.ini' in Windows?  The rules for Windows are the following: bullet   Only one of `my.cnf' or `my.ini' should be created. bullet   The `my.cnf' le should be placed in the root directory of the drive `C:'. bullet   The  `my.ini'   le  should  be  placed  in  the  WINDIR  directory,  e.g,  `C:\WINDOWS'  or `C:\WINNT'.  You can use the SET command of MS-DOS to print the value of WINDIR. bullet   If your PC uses a boot loader where the `C:' drive is not the boot drive, then your only option is to use the `my.ini' le.
     

    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