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

    232 MySQL Technical Reference for Version 4.0.3 other hand,  OPTIMIZE TABLE  is easier to use and you don't have to worry about ushing tables.  See Section 4.5.1 [OPTIMIZE TABLE], page 247. Even that the repair in myisamchk is quite secure, it's always a good idea to make a backup before  doing a repair (or anything that could make a lot of changes to a table) 4.4.6.1  myisamchk Invocation Syntax myisamchk is invoked like this: shell> myisamchk [options] tbl_name The options specify what you want myisamchk to do.  They are described here.  (You can also  get  a  list  of  options  by  invoking  myisamchk --help.)   With  no  options,  myisamchk simply checks your table.  To get more information or to tell myisamchk to take corrective action, specify options as described here and in the following sections. tbl_name  is  the  database  table  you  want  to  check/repair.   If  you  run  myisamchk  some- where other than in the database directory, you must specify the path to the le, because myisamchk  has no idea where your database is located.  Actually,  myisamchk  doesn't care whether  the   les  you  are  working  on  are  located  in  a  database  directory;  you  can  copy the les that correspond to a database table into another location and perform recovery operations on them there. You can name several tables on the  myisamchk  command-line if you wish.  You can also specify a name as an index le name (with the `.MYI' sux), which allows you to specify all tables in a directory by using the pattern `*.MYI'.  For example, if you are in a database directory, you can check all the tables in the directory like this: shell> myisamchk *.MYI If you are not in the database directory, you can check all the tables there by specifying the path to the directory: shell> myisamchk /path/to/database_dir/*.MYI You can even check all tables in all databases by specifying a wildcard with the path to the MySQL data directory: shell> myisamchk /path/to/datadir/*/*.MYI The recommended way to quickly check all tables is: myisamchk --silent --fast /path/to/datadir/*/*.MYI isamchk --silent /path/to/datadir/*/*.ISM If you want to check all tables and repair all tables that are corrupted,  you can use the following line: myisamchk --silent --force --fast --update-state -O key_buffer=64M \ -O sort_buffer=64M -O read_buffer=1M -O write_buffer=1M \ /path/to/datadir/*/*.MYI isamchk --silent --force -O key_buffer=64M -O sort_buffer=64M \ -O read_buffer=1M -O write_buffer=1M /path/to/datadir/*/*.ISM The above assumes that you have more than 64 M free. Note that if you get an error like:
     

    Customer Support CentreMySQL Reference Manual

    Web Hosting Services
    UNIX WEB HOSTING
    SUPPORT & FAQ's
    TERMS OF USE
    Domain Services
    DOMAIN REGISTRATION
    MANAGE YOUR ACCOUNT
    SUPPORT & FAQ's
    TERMS OF USE
    SITE MAP
    Home
    Hosting Plans | Domain Registration | About Us | Contact Us | Site Map
    Terms of Use | Privacy Policy | Guarantees
    Merchant Accounts

    SpiritHost - web hosting for spiritual and education sites
    SpiritHit.com - Religious and Spiritual Portal
  • 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