MySQL Forums
Forum List  »  Replication

Re: slave crash
Posted by: Aftab Khan
Date: August 01, 2012 08:41AM

-- Rick James wrote
>A "temporary table" and the "tmp directory" are unrelated animals.
> A temp table is created in the same place a regular table is created
>tmpdir is used for certain things, like ALTER TABLE.

No, tmpdir isn't used for things like ALTER TABLE.

Quoting: "ALTER TABLE creates a temporary table in the same directory as the original table."

Temporary tables are created in tmpdir, see:

http://dev.mysql.com/doc/refman/5.0/en/temporary-files.html

I ran few quick tests mysql creates temporary files in the tmpdir

Note: tmpdir is /tmp

A) create innodb temporary table:


mysql> create temporary table t (a int, primary key (a)) engine=innodb;
Query OK, 0 rows affected (0.01 sec)

# So I see two files i.e. .frm and .ibd
$ ls -lh /tmp/
total 1.1M
-rw-rw---- 1 mysql mysql 8.4K Jul 17 16:29 #sql1c6f_44_0.frm
-rw-rw---- 1 mysql mysql 96K Jul 17 16:29 #sql1c6f_44_0.ibd

Options: ReplyQuote


Subject
Views
Written By
Posted
2223
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
1137
August 01, 2012 08:30AM
Re: slave crash
1217
August 01, 2012 08:41AM
984
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
1743
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.