Вопрос

After shifting the website to another server. Products are showing out of stock

I found the error while uploading the database file.

 CREATE ALGORITHM=UNDEFINED DEFINER=`user`@`localhost` SQL SECURITY INVOKER VIEW `inventory_stock_1`  AS  select distinct `legacy_stock_status`.`product_id` AS `product_id`,`legacy_stock_status`.`website_id` AS `website_id`,`legacy_stock_status`.`stock_id` AS `stock_id`,`legacy_stock_status`.`qty` AS `quantity`,`legacy_stock_status`.`stock_status` AS `is_salable`,`product`.`sku` AS `sku` from (`cataloginventory_stock_status` `legacy_stock_status` join `catalog_product_entity` `product` on((`legacy_stock_status`.`product_id` = `product`.`entity_id`)))

1227 - Access denied; you need (at least one of) the SUPER privilege(s) for this operation for

Это было полезно?

Решение

Assuming you have access to the SQL data dump file, you need to remove all definer tags from the SQL data dump file before moving.

Remove all DEFINER= entries from SQL import file.

DEFINER privileges are different from the GRANTS, the user is not allowed to execute DEFINER statements.

OR
(assuming user/host service is allowed to run definer privileges)
CREATE DEFINER = **control_panel_username**@localhost FUNCTION ...................

Лицензировано под: CC-BY-SA с атрибуция
Не связан с magento.stackexchange
scroll top