I have a MyISAM
table with more than 200,000 records.
From time to time I need to make a general update on the content.
I create a new table and import ALL postings to the 'second' table in phpMyAdmin
.
So far so good.
After that I run a script that renames the tables:
$sql = "RENAME TABLE primeira TO outra,segunda TO primeira;";
That's where the problem is, sometimes it hangs up and you have to restart MySql
.
I thought about using alter table
, but it seems to me that it's the same thing.