重新索引中的表空间问题

时间:2018-09-25 09:40:36

标签: magento magento2

我正在运行一个命令来重新索引php -f bin/magento indexer:reindex,但是遇到以下问题:

Design Config Grid index has been rebuilt successfully in 00:00:00
Customer Grid index has been rebuilt successfully in 00:00:03
Product Flat Data index has been rebuilt successfully in 00:00:00
Category Flat Data indexer process unknown error:
SQLSTATE[42S01]: Base table or view already exists: 1050 Table './underwor_under_mage/catalog_category_flat_store_1_old' already exists, query was: ALTER TABLE catalog_category_flat_store_1 RENAME TO catalog_category_flat_store_1_old
Category Products index has been rebuilt successfully in 00:00:00
Product Categories index has been rebuilt successfully in 00:00:00
Product Price index has been rebuilt successfully in 00:00:00
Product EAV index has been rebuilt successfully in 00:00:00
Catalog Rule Product index has been rebuilt successfully in 00:00:00
Catalog Product Rule index has been rebuilt successfully in 00:00:00
Stock index has been rebuilt successfully in 00:00:00
Catalog Search indexer process unknown error:
SQLSTATE[HY000]: General error: 1813 Tablespace for table '`underwor_under_mage`.`catalogsearch_fulltext_scope1`' exists. Please DISCARD the tablespace before IMPORT., query was: CREATE TABLE IF NOT EXISTS `catalogsearch_fulltext_scope1` (
  `entity_id` int UNSIGNED NOT NULL COMMENT 'Entity ID' ,
  `attribute_id` int UNSIGNED NOT NULL COMMENT 'Attribute_id' ,
  `data_index` longtext NULL COMMENT 'Data index' ,
  PRIMARY KEY  (`entity_id`, `attribute_id`),
  FULLTEXT `FTI_FULLTEXT_DATA_INDEX` (`data_index`)
) COMMENT='catalogsearch_fulltext_scope1' ENGINE=INNODB charset=utf8 COLLATE=utf8_general_ci

当我尝试使用ALTER TABLE catalogsearch_fulltext_scope1 DISCARD TABLESPACE删除表空间时,它说表不存在,实际上是真的。

这不是专用主机,因此我无法从/var/lib/mysql/database_name删除文件

还有其他解决方法吗?

0 个答案:

没有答案