Quantcast
Channel: MySQL Forums - InnoDB
Viewing all articles
Browse latest Browse all 1957

How to delete "orphaned" partition (1 reply)

$
0
0
The MySql server is set up to generate one-file-per-table. It's running on Windows Server 2008. I created a table called "most_owned_temp" along with about 50 partitions. Later, when I dropped the table, this file was left in the data folder:

most_owned_temp#p#y2033q4.ibd.

When trying to create the "most_owned_temp" table (and partitions) again, the query fails with this error: "Error Code: 1005. Can't create table 'most_owned_temp' (errno: 1)." Evidently, the data file left in the folder gets in the way of recreating the partition. However, I can create the table without partitions, and also with partitions so long as I skip the "Y2003Q4" one.

I'd like to delete this orphaned partition file somehow. I've tried the following steps without success:

1) Remove the partition file from the OS manually. The partition "magically" reappears somehow.

2) Create the "most_owned_temp" table without the affected partition, and then try to drop it from the table. The server comes back with this error: "Error Code: 1507. Error in list of partitions to DROP."

I'm not sure what else to try, so any hints would be welcome.

Thanks.

--Brent

Viewing all articles
Browse latest Browse all 1957

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>