MySQL Forums
Forum List  »  Replication

Re: slave crash
Posted by: Rick James
Date: August 01, 2012 08:30AM

A "temporary table" and the "tmp directory" are unrelated animals.

tmpdir is used for certain things, like ALTER TABLE.

A temp table is created in the same place a regular table is created. It goes away when the thread that created it goes away. In particular, if the slave crashes, any temp table that came through replication is lost. This means that subsequent references to the table will get the error you encountered.

> key_buffer_size=4294967296
This is unreasonably large, unless you have more than 16GB of RAM. If you are using only MyISAM (not InnoDB), then set it to about 20% of RAM.

More on memory usage:
http://mysql.rjweb.org/doc.php/memory

Options: ReplyQuote


Subject
Views
Written By
Posted
2220
July 31, 2012 12:48PM
926
August 01, 2012 06:13AM
1590
August 01, 2012 06:30AM
982
August 01, 2012 06:32AM
1134
August 01, 2012 06:48AM
1153
August 01, 2012 06:40AM
1145
August 01, 2012 07:31AM
Re: slave crash
1136
August 01, 2012 08:30AM
1217
August 01, 2012 08:41AM
983
August 01, 2012 08:43AM
993
August 02, 2012 09:08AM
1144
August 01, 2012 08:34AM
1117
August 02, 2012 12:54PM
921
August 03, 2012 08:44AM
974
August 03, 2012 08:51AM
1742
August 03, 2012 01:04PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.