Monday, July 9, 2012

MYSQL SERVER MANAGEMENT


Optimizing
It is used to remove overhead, sort indexes for better access, and generally keep your tables in good order. It is very useful in tables to optimize who’s currently updated or deleted. The OPTIMIZE statement is a SQL statement used when connected to a MySQL database. The syntax is as follows: OPTIMIZE TABLE tablename. Optimizing is an important part of any administrative routine for databases and should be performed regularly.

Analyzing
Analyzing tables improves performance by updating the index information for a table so that MySQL can make a better decision on how to join tables.

Checking
The checking of table is very useful, it checks if there are errors in the table to prevent corruption of 
data. It has six options and there are UPGRADE, QUICK, FAST, MEDIUM, EXTENDED, CHANGED. 
The for upgrade checks if the table is needed to be upgrade if the mysql is compatible with the tables
 that has been created. The incompatibilities may occur because the storage format for a data type 
has changed or because its sort order has changed.

Repairing
The main function of this is to repair table from errors or corrupted table. The same as the checking tables, the repair tables has five options and there are QUICK, FAST, MEDIUM, EXTENDED, CHANGED. The syntax for this is repair table tablename option; you will know if the table is repaired or not by its output. The output has the last row which is the message type. You can see the status if it’s ok.

No comments:

Post a Comment