# MongoDB Community Version 2.6.12 - Upgrade to Percona Server for MongoDB 4.2

**URL:** <https://forums.percona.com/t/mongodb-community-version-2-6-12-upgrade-to-percona-server-for-mongodb-4-2/11620>\
**Category:** Percona Server for MongoDB\
**Created:** [August 2, 2021, 6:21am UTC](https://forums.percona.com/t/mongodb-community-version-2-6-12-upgrade-to-percona-server-for-mongodb-4-2/11620 "2021-08-02T06:21:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dan.mbtc](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/dan.mbtc/32/3006_2.png) [@dan.mbtc](https://forums.percona.com/u/dan.mbtc)\
**Post date:** [August 2, 2021, 6:21am UTC](https://forums.percona.com/t/mongodb-community-version-2-6-12-upgrade-to-percona-server-for-mongodb-4-2/11620/1 "2021-08-02T06:21:04Z")

</div>

Hi and good day,

Just wanted to know if i can directly upgrade a MongoDB Community Version 2.6.12 to Percona Server for Mongo DB 4.2

---

<div class="post-metadata">

**Author:** ![jenunes](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/jenunes/32/9331_2.png) [@jenunes](https://forums.percona.com/u/jenunes)\
**Post date:** [August 19, 2021, 12:46am UTC](https://forums.percona.com/t/mongodb-community-version-2-6-12-upgrade-to-percona-server-for-mongodb-4-2/11620/2 "2021-08-19T00:46:19Z")

</div>

Hi @dan.mbtc

I’m not sure if you already got your question clarified, but it may help others who are with the same doubt.

It’s important to have in mind that is not related to MongoDB CE to PSMDB or vice-versa but indeed with the correct upgrade path per se.

That’s because PSDBM is a drop-in replacement for MongoDB CE.

So, if you are planning to **upgrade by replacing the existing binaries** , you must upgrade to the next major release only, and so on. E.g:  
2.6.x → 3.0.x and then 3.0.x → 3.2.x → 3.4.x… Until the 4.2.x binarie.

However, you can also choose to use mongodump and mongorestore as upgrade procedure, in that way it’s possible to jump directly from 2.6.x to 4.2.x - By dumping from 2.6.x and restoring into 4.2.x

In both cases, it’s highly suggested to test the upgrade procedure as several changes/features were applied between those versions.

Best,

---

<div class="post-metadata">

**Author:** ![dan.mbtc](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/dan.mbtc/32/3006_2.png) [@dan.mbtc](https://forums.percona.com/u/dan.mbtc)\
**Post date:** [August 19, 2021, 8:09am UTC](https://forums.percona.com/t/mongodb-community-version-2-6-12-upgrade-to-percona-server-for-mongodb-4-2/11620/3 "2021-08-19T08:09:52Z")

</div>

hi, sorry for the late response , thank you for the suggestion will test the mongodump and have it tested by application support.
