我們在我們的生產服務器中使用Mysql 5.1,並嘗試運行alter query以將列的數據類型從tinytext更改爲varchar(200)。在運行ALTER查詢,我們看到了這個錯誤: -Mysql InnoDB錯誤代碼#1025
#1025 - Error on rename of './msging/#sql-123b_ab7634' to './msging/outboxes' (errno: -1)
MySQL的論壇,表明這種錯誤可能是因爲外鍵約束。但是我們的模式沒有任何外鍵。 mysql錯誤日誌顯示了下面提到的錯誤。我們檢查了錯誤語句中提到的鏈接,但找不到任何有用的東西。任何想法可能會出錯?
InnoDB: Error: './msging/outboxes.ibd' is already in tablespace memory cache
111001 12:40:18 InnoDB: Error in table rename, cannot renamemsging
.#sql-123b_ab4828
tomsging
.outboxes
111001 12:40:18 InnoDB: Error: tablemsging
.outboxes
does not exist in the InnoDB internal
InnoDB: data dictionary though MySQL is trying to drop it.
InnoDB: Have you copied the .frm file of the table to the
InnoDB: MySQL database directory from another database?
InnoDB: You can look for further help from
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/innodb-troubleshooting.html