<< 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 7:  MySQL Table Types 497    If the repair fails,  retry once more with the old repair option method (write row by row without sorting) which should be able to repair any type of error with little disk requirements.. If the recover wouldn't be able to recover all rows from a previous completed statement and you didn't specify FORCE as an option to myisam-recover, then the automatic repair will abort with an error message in the error le: Error: Couldn't repair table: test.g00pages If you in this case had used the FORCE option you would instead have got a warning in the error le: Warning: Found 344 of 354 rows when repairing ./test/g00pages Note that if you run automatic recover with the  BACKUP  option,  you should have a cron script that automatically moves le with names like `tablename-datetime.BAK' from the database directories to a backup media. See Section 4.1.1 [Command-line options], page 181. 7.1.1  Space Needed for Keys MySQL  can  support  di erent  index  types,  but  the  normal  type  is  ISAM  or  MyISAM. These use a B-tree index, and you can roughly calculate the size for the index le as (key_ length+4)/0.67,  summed  over  all  keys.   (This  is  for  the  worst  case  when  all  keys  are inserted in sorted order and we don't have any compressed keys.) String indexes are space compressed.  If the rst index part is a string, it will also be pre x compressed.  Space compression makes the index le smaller than the above gures if the string column has a lot of trailing space or is a VARCHAR column that is not always used to  the  full  length.   Pre x  compression  is  used  on  keys  that  start  with  a  string.   Pre x compression helps if there are many strings with an identical pre x. In MyISAM tables, you can also pre x compress numbers by specifying PACK_KEYS=1 when you create the table.  This helps when you have many integer keys that have an identical pre x when the numbers are stored high-byte rst. 7.1.2  MyISAM Table Formats MyISAM  supports 3 di erent table types.  Two of them are chosen automatically depending on the type of columns you are using.  The third, compressed tables, can only be created with the myisampack tool. When you CREATE or ALTER a table you can for tables that doesn't have BLOBs force the table format to DYNAMIC or FIXED with the ROW_FORMAT=# table option.  In the future you will be able to compress/decompress tables by specifying ROW_FORMAT=compressed | default to ALTER TABLE.  See Section 6.5.3 [CREATE TABLE], page 469.
     

    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