cancel
Showing results for 
Search instead for 
Did you mean: 

After run php bin/magento indexer:reindex get an error

After run php bin/magento indexer:reindex get an error

After run command 

php bin/magento indexer:reindex 

I got the following error:

Customer Grid index process error during indexation process:
SQLSTATE[HY000]: General error: 1813 Tablespace for table '`MYSERVER`.`mg_customer_grid_flat`' exists. Please DISCARD the tablespace before IMPORT, query was: CREATE TABLE IF NOT EXISTS `mg_customer_grid_flat` (
  `entity_id` int UNSIGNED NOT NULL COMMENT 'Entity ID' ,
  `name` text NULL COMMENT 'Name' ,
  `email` varchar(255) NULL COMMENT 'Email' ,
  `group_id` int NULL COMMENT 'Group_id' ,
  `created_at` timestamp NULL default NULL COMMENT 'Created_at' ,
  `website_id` int NULL COMMENT 'Website_id' ,
  `confirmation` varchar(255) NULL COMMENT 'Confirmation' ,
  `created_in` text NULL COMMENT 'Created_in' ,
  `dob` date NULL COMMENT 'Dob' ,
  `gender` int NULL COMMENT 'Gender' ,
  `taxvat` varchar(255) NULL COMMENT 'Taxvat' ,
  `lock_expires` timestamp NULL default NULL COMMENT 'Lock_expires' ,
  `shipping_full` text NULL COMMENT 'Shipping_full' ,
  `billing_full` text NULL COMMENT 'Billing_full' ,
  `billing_firstname` varchar(255) NULL COMMENT 'Billing_firstname' ,
  `billing_lastname` varchar(255) NULL COMMENT 'Billing_lastname' ,
  `billing_telephone` varchar(255) NULL COMMENT 'Billing_telephone' ,
  `billing_postcode` varchar(255) NULL COMMENT 'Billing_postcode' ,
  `billing_country_id` varchar(255) NULL COMMENT 'Billing_country_id' ,
  `billing_region` varchar(255) NULL COMMENT 'Billing_region' ,
  `billing_region_id` int NULL COMMENT 'Billing_region_id' ,
  `billing_street` varchar(255) NULL COMMENT 'Billing_street' ,
  `billing_city` varchar(255) NULL COMMENT 'Billing_city' ,
  `billing_fax` varchar(255) NULL COMMENT 'Billing_fax' ,
  `billing_vat_id` varchar(255) NULL COMMENT 'Billing_vat_id' ,
  `billing_company` varchar(255) NULL COMMENT 'Billing_company' ,
  PRIMARY KEY (`entity_id`),
  INDEX `MG_CUSTOMER_GRID_FLAT_GROUP_ID` (`group_id`),
  INDEX `MG_CUSTOMER_GRID_FLAT_CREATED_AT` (`created_at`),
  INDEX `MG_CUSTOMER_GRID_FLAT_WEBSITE_ID` (`website_id`),
  INDEX `MG_CUSTOMER_GRID_FLAT_CONFIRMATION` (`confirmation`),
  INDEX `MG_CUSTOMER_GRID_FLAT_DOB` (`dob`),
  INDEX `MG_CUSTOMER_GRID_FLAT_GENDER` (`gender`),
  INDEX `MG_CUSTOMER_GRID_FLAT_BILLING_COUNTRY_ID` (`billing_country_id`),
  FULLTEXT `FTI_98FF5E448D1F1AF1822CC36867185AC8` (`name`, `email`, `created_in`, `taxvat`, `**bleep**`, `billing_region`, `billing_city`, `billing_fax`, `billing_company`)
) COMMENT='mg_customer_grid_flat' ENGINE=INNODB charset=utf8 COLLATE=utf8_general_ci

I searched all over the internet, but could not find a solution. Who can help me with this? I had not this issue before.

 

Magento 2.4.3-p1

1 REPLY 1

Re: After run php bin/magento indexer:reindex get an error

Hello @alexander_jorda ,

 

This looks same issue here : https://magento.stackexchange.com/q/151779

 

There isn't a clear solution from this post though. Perhaps you could try deleting the table and recreating it?

 

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy