1, the error message:
ERROR 1194 (HY000): Table '/home/mysql/xxxx/tmp/#sql_xxxx' is marked as crashed and should be repaired
2 reasons:
correspondence table update statements executed in a few character definition is too long
show create table table name, the field definitions have found varchar (4000)
When filled to the data memory overflow results in
3, the solution:
set global tmp_table_size=16*1024*1024;
Set up after the statement is executed successfully.
tmp_table_size value can not be changed too big, complicated by high, then you will not have so much memory can be allocated.