I'm new with Magento. Now I want to upgrade Magento from 2.3 to 2.4 and I already make a seperated 2.4 sites. but on my 2.3 is still using so the order is continue running.

I want to know that if I can dump database with all table from Magento2.3 to Magento 2.4 or not? The step that I think is move database into new site and change database connection in Magento2.4 .env file. Can I do that or I have to export each table myself.

1 Answer 1


Yes you can do the following things.

  1. Make the coppy of Magento 2.3 database.

  2. Now Change the env.php file of Magento 2.4 and connected that to newly create copy database.

  3. Run the upgrade, deploy and all the commands.

  • I already to that. but their are some problem with product that I add on Magento2.3 after making seperated 2.4 site. After change DB in env file and do the upgrade and cache thing. It's not show the custom block class on the new product page. but on the old product page, it's showed Commented Sep 16, 2021 at 4:48
  • Confirm that things not required any file changes like install extension, or do the conflict etc. Commented Sep 16, 2021 at 5:18
  • yes, it's just phtml file Commented Sep 16, 2021 at 5:30
  • Then do those things into the 2.4 and then check. Commented Sep 16, 2021 at 5:42
  • I have to add new product on 2.4 database right? Commented Sep 16, 2021 at 5:53

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.