[Howto Fix] Table './eximstats/sends' is marked as crashed and should be repaired
I've tryed to dump my whole databases with mysqldump
mysqldump --all-databases > all_databases.sql
got the error 'Table './eximstats/sends' is marked as crashed and should be repaired when using LOCK TABLES'
'eximstats' is my databasename und 'sends' my tablename.
I've tryed to repair the table with
mysqlcheck -u root --check auto-repair --optimize all-databases
but it no not worked
I've also tryed to repair ith with
mysql> repair table eximstats.sends;
+-----------------+--------+----------+-----------------------------------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+-----------------+--------+----------+-----------------------------------------------------------------------+
| eximstats.sends | repair | Error | Table './eximstats/sends' is marked as crashed and should be repaired |
| eximstats.sends | repair | Error | Table 'sends' is marked as crashed and should be repaired |
| eximstats.sends | repair | status | Table is already up to date |
+-----------------+--------+----------+-----------------------------------------------------------------------+
and it do not worked again...
I've stoped mysql daemon
service mysqld stop
I've tryed to repair MYI files with myisamchk with the parameter '-r'.
root@server[/home/user]# myisamchk /var/lib/mysql/eximstats/sends.MYI
Checking MyISAM file: /var/lib/mysql/eximstats/sends.MYI
Data records: 904 Deleted blocks: 114296
myisamchk: warning: Table is marked as crashed
myisamchk: warning: 19 clients are using or haven't closed the table properly
- check file-size
- check record delete-chain
myisamchk: error: record delete-link-chain corrupted
- check key delete-chain
- check index reference
- check data record references index: 1
myisamchk: error: Found key at page 3105792 that points to record outside datafile
MyISAM-table '/var/lib/mysql/eximstats/sends.MYI' is corrupted
Fix it using switch "-r" or "-o"
root@server[/home/user]# myisamchk /var/lib/mysql/eximstats/sends.MYI -r
- recovering (with sort) MyISAM-table '/var/lib/mysql/eximstats/sends.MYI'
Data records: 904
- Fixing index 1
- Fixing index 2
- Fixing index 3
And it worked suddenly :)
Similar entries
- Repair all mysql databases-tables with PHP
- Why bloody Bing sends fake referrer?
- Page generation time and http-referers with PHP
- Basic HTML Table with rounded corners
- Backup all MySQL databases automagicly with the PHP admin script
- Server Crash - "isc_socket_create: fcntl/reserved: Too many open files" [Howto Fix]
- Table colspan rowspan with DIVs
- Why tableless design, DIV vs. TABLE
- Mysql update table if field exists
- Mysql Order / Sort by before Group by
- Attempting to pop table window
- Mysql: update weight by an auto-incremented string created on the fly
- Iframe Trojan / Virus of Alcobro.net
- How to filter all html tags from each _GET and _POST request
- Fix Cpanel/WHM's easyapache and up2date issue (certificate verify failed)
- E: Sub-process /usr/bin/dpkg returned an error code (1)
- 403 error after installing Nagios and Webmin (conflict)
- #2006 - MySQL server has gone away
- CSS vertical text for mozilla-firefox?

Comments
Post new comment