Posts regarding the MySQL database server
-
mister_v
- Posts: 203
- Joined: Thu Mar 04, 2010 9:19 pm
Post
by mister_v »
Hi,
I have the following error in MySQL,
when I do an alter statement:
Code: Select all
ERROR 1878 (HY000): Temporary file write failure.
the Alter command:
Code: Select all
ALTER TABLE f_inside_trade ADD COLUMN source TINYINT UNSIGNED;
Anyone know what the reason is?
Its the first time I get this error.
-
chris
- Site Admin
- Posts: 216
- Joined: Mon Jul 21, 2008 9:52 am
Post
by chris »
When you do a ALTER TABLE in MySQL it re-create the table,
so two copies of the table exists on the system.
So you need enough free space.
specially in
/tmp/
Because this dir is used as default.
you can change it in
/etc/mysql/my.cnf