We moved out Magento 2 to a new server. All works fine but indexing of the product prices. All other indexers work fine. An when we run bin/magento indexer:reindex we get the following error:
SQLSTATE[28000]: Invalid authorization specification: 1045 Access denied for user 'ku0h8_mag_stagin'@'localhost' (using password: YES), query was: DELETE
price_index
FROMcatalog_product_index_price_temp
ASprice_index
INNER JOINcatalog_product_entity
ASproduct_entity
ON product_entity.entity_id = price_index.entity_id LEFT JOINinventory_stock_1
ASinventory_stock
ON inventory_stock.sku = product_entity.sku WHERE (inventory_stock.is_salable = 0 OR inventory_stock.is_salable IS NULL) AND (price_index.website_id = 1) AND (price_index.entity_id IN ('1', '2', '3', '4', '5', '8', '9', '29', '30', '31', '34', '35', '36', '37', '38', '39', '40', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '56', '57', '58', '59', '60', '61', '62', '63', '64', '65', '66', '67', '68', '69', '70', '71', '72', '73', '74', '75', '76', '77', '78', '79', '80', '81', '82', '83', '84', '85', '86', '87', '88', '89', '90', '91', '92', '95', '96', '97', '98', '99', '100', '101', '102', '103', '104', '105', '106', '109', '110', '111', '112', '113', '114', '115', '116', '117', '118', '119', '120', '121', '122', '123', '124', '125', '126', '127', '128', '129', '130', '131', '132', '133', '134', '135', '136', '137', '138', '139', '140', '141', '142', '143', '144', '145', '146', '147', '148', '149', '150', '151', '152', '153'))
- localhost is not the host we have set in env.php
- The table
catalog_product_index_price_temp
does not exists (it'scatalog_product_index_price_tmp
)
I have no idea why Magento uses catalog_product_index_price_temp
.
Thanks for any help or hint where to start searching.