How can I migrate my media database from the old server to the new server

You can do that… there’s the generic guide / support article describing how to achieve this within the same host platform (e.g. Linux → Linux, Mac → Mac, Windows → Windows).
https://support.plex.tv/articles/201370363-move-an-install-to-another-system/

There’s also a more detailed guide from chuckpa in the Linux tips & tricks section with specific specialties/considerations and how to migrate from another platform to Linux (though it’ll also be useful for Linux → Linux migrations).

Personally I consider your biggest obstacle will be the massive version jump.
While PMS can skip quite a number of versions and upgrade your library and databases accordingly… version 1.10 is just… really old. So not sure this might be a problem (e.g. too many significant changes to the folder/library structures).
Keep in mind your old setup was released in Dec. 2017 – that’s ancient when it comes to computer stuff :wink: