---
title: "How to Upgrade Magento 2.4.x to the 2.4.6 Version - MarketDyno"
description: "Enter the world of continuous and powerful online marketing with MarketDyno. Our website empowers you to execute creative e-commerce and e-marketing strategies"
url: "https://www.marketdyno.chivo.ir/blog/12-learning/59-how-to-upgrade-magento-2-4-x-to-the-2-4-6-version.html"
date: "2026-08-09T23:26:44+00:00"
language: "en-GB"
---

## Breadcrumbs

[Home](https://www.marketdyno.chivo.ir/) > [Blog](https://www.marketdyno.chivo.ir/blog.html) > [Learning](https://www.marketdyno.chivo.ir/blog/12-learning.html) > How to Upgrade Magento 2.4.x to the 2.4.6 Version

# How to Upgrade Magento 2.4.x to the 2.4.6 Version

![](https://www.marketdyno.chivo.ir/templates/yootheme/cache/cc/image-cc59a796.png)

### Step 1: Backup Your Store

Before making any changes, it's crucial to back up your Magento store. This includes your database, files, and the `composer.json` file.

#### Backup Files and Database

1. **Files**: Use a file manager or FTP client to copy your Magento files to a safe location.
2. **Database**: Use a tool like phpMyAdmin or a command-line utility to export your database.

#### Backup `composer.json` File

`cp composer.json composer.json.bak`

### Step 2: Enable Maintenance Mode

This will prevent your live site from being affected during the upgrade process.

`php bin/magento maintenance:enable`

### Step 3: Upgrade Magento via Composer

1. **Require the New Magento Version**: This command updates the `composer.json` file to require the new version. `composer require magento/product-community-edition=2.4.6 --no-update`
2. **Update Dependencies**: Run the update to install the new version. `omposer update`

### Step 4: Update the Database

After updating the files, you need to update the Magento database schema.

`php bin/magento setup:upgrade`

### Step 5: Disable Maintenance Mode

Once the upgrade process is complete, turn off maintenance mode.

`php bin/magento maintenance:disable`

### Step 6: Clear Cache

Clear the cache to ensure that your store functions correctly with the new version.

`php bin/magento cache:clean php bin/magento cache:flush`

### Step 7: Check and Compile Code

Run the following commands to ensure everything is set up correctly.

`php bin/magento setup:di:compile php bin/magento indexer:reindex`

### Step 8: Test Your Store

After the upgrade, thoroughly test your store to ensure that all functionalities are working as expected.

### Additional Notes:

- **Check Extensions and Themes**: Ensure that all your extensions and themes are compatible with Magento 2.4.6.
- **Test in a Development Environment**: If possible, perform these steps in a staging or development environment first before applying them to your live store.

This process assumes you have shell access to your server and are familiar with basic Magento administration and server management. If you're not comfortable performing these steps, consider seeking assistance from a Magento developer.

## JSON-LD Schema

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Organization",
            "@id": "https://www.marketdyno.chivo.ir/#/schema/Organization/base",
            "name": "MarketDyno",
            "url": "https://www.marketdyno.chivo.ir/"
        },
        {
            "@type": "WebSite",
            "@id": "https://www.marketdyno.chivo.ir/#/schema/WebSite/base",
            "url": "https://www.marketdyno.chivo.ir/",
            "name": "MarketDyno",
            "publisher": {
                "@id": "https://www.marketdyno.chivo.ir/#/schema/Organization/base"
            }
        },
        {
            "@type": "WebPage",
            "@id": "https://www.marketdyno.chivo.ir/#/schema/WebPage/base",
            "url": "https://www.marketdyno.chivo.ir/blog/12-learning/59-how-to-upgrade-magento-2-4-x-to-the-2-4-6-version.html",
            "name": "How to Upgrade Magento 2.4.x to the 2.4.6 Version - MarketDyno",
            "description": "Enter the world of continuous and powerful online marketing with MarketDyno. Our website empowers you to execute creative e-commerce and e-marketing strategies ",
            "isPartOf": {
                "@id": "https://www.marketdyno.chivo.ir/#/schema/WebSite/base"
            },
            "about": {
                "@id": "https://www.marketdyno.chivo.ir/#/schema/Organization/base"
            },
            "inLanguage": "en-GB"
        },
        {
            "@type": "Article",
            "@id": "https://www.marketdyno.chivo.ir/#/schema/com_content/article/59",
            "name": "How to Upgrade Magento 2.4.x to the 2.4.6 Version",
            "headline": "How to Upgrade Magento 2.4.x to the 2.4.6 Version",
            "inLanguage": "en-GB",
            "author": {
                "@type": "Person",
                "name": "Mehdi Faal"
            },
            "thumbnailUrl": "images/blog/image.png",
            "image": "images/blog/image.png",
            "articleSection": "Learning",
            "dateCreated": "2024-01-03T04:26:08+00:00",
            "isPartOf": {
                "@id": "https://www.marketdyno.chivo.ir/#/schema/WebPage/base"
            }
        }
    ]
}
```
