Hi,
I have the error message:
table is marked as crashed and should be repaired
So how do I do that ?
SOLVED: mysql table is marked as crashed and should be repaired
SOLVED: mysql table is marked as crashed and should be repaired
Last edited by mister_v on Fri Sep 07, 2018 7:26 am, edited 1 time in total.
Re: mysql table is marked as crashed and should be repaired
The simple answer :
if you want more information:
https://dev.mysql.com/doc/refman/8.0/en ... table.html
or
http://dev.mysql.com/doc/refman/5.0/en/ ... epair.html
Code: Select all
REPAIR TABLE tablename
https://dev.mysql.com/doc/refman/8.0/en ... table.html
or
http://dev.mysql.com/doc/refman/5.0/en/ ... epair.html
Re: mysql table is marked as crashed and should be repaired
Thanks that worked.
But now I have another problem.
The repair process crashed.
Probably because of diskspace.
But I have enough free, just /tmp is full.
I assume it uses /tmp, how can I change this?
But now I have another problem.
The repair process crashed.
Probably because of diskspace.
But I have enough free, just /tmp is full.
I assume it uses /tmp, how can I change this?
Re: mysql table is marked as crashed and should be repaired
Default MySQL repair uses /tmp as temporary dir.
In many system /tmp is now mounted as tmpfs in ram memory,
and is limited in size.
You can change it /etc/mysql/my.cnf
change the tmpdir variable to another dir:
and restart MySQL:
In many system /tmp is now mounted as tmpfs in ram memory,
and is limited in size.
You can change it /etc/mysql/my.cnf
change the tmpdir variable to another dir:
Code: Select all
tmpdir=/var/tmp
Code: Select all
/etc/init.d/mysql restart
Re: SOLVED: mysql table is marked as crashed and should be repaired
Thanks, changing the tmpdir worked.