0

enter image description hereI have installed Magento 2.4.1 via composer and got the store and admin panel without any error but when I try to set sample data am getting the below error.

Unable to apply data patch Magento\CatalogRuleSampleData\Setup\Patch\Data\InstallCatalogRuleSampleData for module Magento_CatalogRuleSampleData. Original exception message: Rolled back transaction has not been completed correctly.

I have used the below commands to set the sample data. php bin/magento sampledata:deploy php bin/magento module:enable --all php bin/magento setup:upgrade

Also, I have enabled the developer mode and ran the above command still am getting the same error.

0

1 Answer 1

0

This error is caused by MySQL 8.

You can see more details in this exact issue reported on Github

Downgrade your MySQL version and try again.

1
  • I am using MySQL version 8.0.12
    – Ajmalriyaz
    Dec 18, 2020 at 6:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.