NetXMS Support Forum

English Support => General Support => Topic started by: Jackson on September 14, 2022, 07:05:52 PM

Title: Database Migration Windows Server 2022
Post by: Jackson on September 14, 2022, 07:05:52 PM
Hello I am trying to migrate my database to the new instance and I found this link Database Migration (https://wiki.netxms.org/wiki/How_to_migrate_to_another_database), but I do not know where to enter the commands. It always says command not recognized when I enter it in PowerShell or Server Console through the management console. Anyone know how to accomplish this?
Title: Re: Database Migration Windows Server 2022
Post by: Jackson on September 14, 2022, 07:33:50 PM
I found where to run it but now I am running into this issue. I am attempting to migrate the database but I don't understand how to do it. I see the commands but I don't know how I am supposed to tell it to run off a different database when I just have a backup of one from the other server. The documentation is lacking. Can anyone please walk me through this.

Thanks

Title: Re: Database Migration Windows Server 2022
Post by: Jackson on September 14, 2022, 07:34:41 PM
Capture.PNG
Title: Re: Database Migration Windows Server 2022
Post by: Filipp Sudanov on September 15, 2022, 12:26:44 PM
Let's start from why nxdbmgr check is failing. Same as netxmsd executable does, nxdbmgr is trying to open netxmsd.conf configuration file from some predefined places, normally it's C:\netxms\etc\netxmsd.conf
If your netxms server is running, then the file should be there. Could it be that you are running cmd under regular user, not admin and there are no acess rights to the config file?