|
| ||||||||||
| Tags: database, mysql, mysql database, mysql tables |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| How to detect failure of MySQL database tables
I am using MySQL database, it have lots of process, a variety of accident Database Table damage, and these data are often the latest data, and can not be found in the backup data. Si i want to know that how to detect failure of MySQL database tables. Please suggest. Thanks in advance. |
|
#2
| ||||
| ||||
| How to detect failure of MySQL database tables Table Fault Detection and amendment of the general process is as follows: # Check the error table. If the table check is passed, then complete the task, he must repair the error database table. # Begin repairing the table before copying the file to ensure data security. # Begin the restoration of the database table. # If the repair fails, the backup from the database or update Log to recover the data. |
|
#3
| |||
| |||
| Re: How to detect failure of MySQL database tables
You need to establishment of a database backup and use the updated log, to prevent repair failure, loss of data. If you are on the Unix platform, table maintenance, it should first registered to a dedicated account for mysql, in order to avoid the table to read and write access to create ownership, as well as destruction of the database directory all the permissions. All the best. |
|
#4
| ||||
| ||||
| Re: How to detect failure of MySQL database tables
MySQL myisanchk and isamchk utility is very similar, basically they have the same use of Methods. The main difference between them when used in the table type. In order to check / repair MyISAM tables (. MYI, and. MYD), you should use the myisamchk utility. In order to check / repair ISAM tables (. ISM and. ISD), you should use the isamchk utility. In order to use either one to use the program, should indicate you want to check or repair tables, myisamchk, and isamchk used methods are: Code: shell> myisamchk options tbl_name shell> isamchk options tbl_name |
|
#5
| ||||
| ||||
| Re: How to detect failure of MySQL database tables
You can also specify a name as an index file (with ". MYI" or ". ISM" suffix), which allows you to use pattern "*. MYI" or ". ISM" to specify a directory all of the tables. For example, if you are in a database directory, you can check the directory so that all of the table: Code: shell> myisamchk *. MYI shell> isamchk *. ISM Code: shell> myisamchk options / path / to / database_dir / *. MYI shell> isamchk options / path / to / database_dir / *. ISM |
|
#6
| ||||
| ||||
| How to detect failure of MySQL database tables
You can even use for the MySQL data directory path to specify a wildcard to act on all of the database all the tables: Code: shell> myisamchk options / path / to / datadir /*/*. MYI shell> isamchk options / path / to / database_dir /*/*. ISM
__________________ Grand Theft Auto 4 PC Video Game |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "How to detect failure of MySQL database tables" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MySQL: Entering data in tables | Botan | Software Development | 2 | 22-12-2010 04:44 AM |
| How to manage databases and tables in MySQL? | Aahlaadith | Software Development | 5 | 17-12-2010 06:18 AM |
| How to create MySQL Database and Tables in PHP? | Orton | Software Development | 4 | 23-02-2010 05:45 AM |
| Mysql select from multiple tables for php. | afidelino | Software Development | 4 | 09-07-2009 06:13 PM |
| Restore corrupted MyISAM/InnoDB tables on MySQL 5.0 | jean-paul martell | Software Development | 5 | 14-04-2009 09:03 AM |