Difference between revisions of "How to migrate to another database"

no edit summary
Line 5: Line 5:
2. Create new database.
2. Create new database.


3. Initialize new database:
3. Adjust '''netxmsd.conf''' - change DBDriver, DBName, etc. to match new database.
 
4. Initialize new database:


   nxdbmgr init /opt/netxms/share/netxms/sql/dbinit_pgsql.sql
   nxdbmgr init /opt/netxms/share/netxms/sql/dbinit_pgsql.sql


Please note, that there are different files for different database types, in this example - '''dbinit_pgsql.sql''' is for PostgreSQL.
Please note, that there are different files for different database types, in this example - '''dbinit_pgsql.sql''' is for PostgreSQL.
4. Adjust '''netxmsd.conf''' - change DBDriver, DBName, etc. to match new database.


5. (optional) Run "nxdbmgr check" to verify connectivity to new database.
5. (optional) Run "nxdbmgr check" to verify connectivity to new database.
683

edits