Solved

MYSQL - Using Checksum with MYISAM Tables

Posted on 2006-11-17
1
418 Views
Last Modified: 2012-06-27
I am using mysql-4.0.24 on a Windows2000 machine for a small but complicated application. The number of queries and updates may be 50 or 60 per hour on days except Monday. On Monday's it could be around 100 to 150. All my tables are MYISAM with first 3 columns cross-indexed. The total number of tables in the database is 50. During each entry and update more than 5 or 6 tables are opened and closed multiple times. A few times I've experienced corruption of tables. Most of the times the error was -"can't open file: 'tableName.MYI'. (errno: 144)".
I've read somewhere that using CHECKSUM = 1 can reduce the chances of corruption in MYISAM tables. Is it correct? Will it affect the insert/update timing and query performance?
Regards
Thomas
0
Comment
Question by:chasun
1 Comment
 
LVL 35

Accepted Solution

by:
Raynard7 earned 125 total points
ID: 17969615
You are correct that this may reduce the corruption, however if this is happening regurlarly then there would be a greater underlying problem.  I know that this is an old version but still should not be happening.  I'd suggest that it is probably a hardware issue becuase this should not happen as a general rule.

It also may make things slower depending on the size of each table, becuase each change that is made a new checksum is generated - this involves looking at each byte in the file and then mathematically manipulating this to a signature.  If all your tables are reasonably small (100mb or so) then this should not greatly reduce performance.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword In the years since this article was written, numerous hacking attacks have targeted password-protected web sites.  The storage of client passwords has become a subject of much discussion, some of it useful and some of it misguided.  Of cou…
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question