Maintaining a Table
While working with MySQL databases, you do a lot of changes such as data insert, update, and deletion, which may cause table fragmentation. As a result, the database server performance is deteriorated. To handle this, periodic maintenance is required.
Functions
Function |
Description |
---|---|
Check |
Allows you to check whether there are errors in database tables using the CHECK TABLE statement. You can check a table with any of the following methods: Check, Quick, Fast, Changed, and Extended. The CHECK TABLE statement adds a read-only lock to the table.
|
Repair |
Allows you to use the REPAIR TABLE statement to repair possibly corrupted or incorrect tables. You can repair tables using any of the following three methods: Check, Quick, and Extended.
|
Checking a Table
- Click
in the upper left corner and select a region and project.
- Click
in the upper left corner, and under Databases, click Data Admin Service.
- In the navigation pane on the left, choose Development Tool.
- Locate the DB instance that you want to log in to and click Log In in the Operation column.
- On the top menu bar, choose Database Management.
- Click Change on the right of the current database to switch to the database where you want to create a table.
- On the displayed Objects tab, choose Tables on the left.
- Locate the table you want to check and choose More > Maintain > Check in the Operation column.
- Select a check method as required.
You can check a table with any of the following methods: Check, Quick, Fast, Changed, and Extended.
- In the displayed dialog box, click Yes.
Repairing a Table
- Click
in the upper left corner and select a region and project.
- Click
in the upper left corner, and under Databases, click Data Admin Service.
- In the navigation pane on the left, choose Development Tool.
- Locate the DB instance that you want to log in to and click Log In in the Operation column.
- On the top menu bar, choose Database Management.
- Click Change on the right of the current database to switch to the database where you want to maintain a table.
- On the displayed Objects tab, choose Tables on the left.
- Locate the table you want to repair and choose More > Maintain > Repair in the Operation column.
- Select a repair method as required.
You can repair tables using any of the following three methods: Check, Quick, and Extended.
- In the displayed dialog box, click Yes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.