Mongo DB - update server to a new version

Dani_S 5,581 Reputation points
2025-12-31T08:58:55.19+00:00

Hi,

1.I'm using Maui app in version 9, in VS 2026 , last update.

2.I'm using Mongo: with this app as follow:

Server: version 7.0.3.

Client (compass): version 1.42.2

User's image

  1. There is vulnerability in server version, please see , and use Google Translate to English.

https://www.pc.co.il/news/%D7%90%D7%91%D7%98%D7%97%D7%AA-%D7%9E%D7%99%D7%93%D7%A2-%D7%95%D7%A1%D7%99%D7%99%D7%91%D7%A8/443330/

4.My questions are:

A.I want to keep my data safely after upgrade.

B. How to upgrade the mongo sever with anew version 8.2.3 ?

C. Does it will remove the old version?

D. Or it will install it side by side? if yes, which version , the MAUI app will use?

E. What is the best practice for upgrading Mongo server ?

F. Does data will be damaged ? how can I checked it?

G. What about the client (compass), version 1.42.2 , it supports the new mongo server 8.2.3 ?

Thanks,

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Michael Le (WICLOUD CORPORATION) 10,555 Reputation points Microsoft External Staff Moderator
    2026-01-01T08:18:17.3133333+00:00

    Hello @Dani_S ,

    For most of your questions about MongoDB Server, you’ll get the best support by asking in the MongoDB community. Although technical questions are no longer supported on the official forum, you can post your questions on their recognized forums such as Stack Overflow and Reddit.

    While these are non-Microsoft websites, they are the official community forums for MongoDB.

    That said, I can answer a couple of your questions related to how this affects your MAUI app:

    • The standard MongoDB Windows MSI installer does not install side by side. It performs an in-place upgrade, replacing the old version’s binaries with the new version. Your data directory remains in the same location.
    • Your MAUI app will connect to whichever MongoDB server is running based on your connection string. The connection string in your MAUI app (usually something like mongodb://localhost:27017/yourDatabase) points to a specific host and port. Whichever MongoDB service is running on that host/port is what your app will use.
    • If you need more control or want to run multiple versions simultaneously, you would need to manually install MongoDB in different directories and configure them to use different ports. However, that’s not the standard approach and adds unnecessary complexity.

    I hope this clarifies things, and Happy New Year.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.