A common question asked by our user base is how can we migrate LYNQ (applications and data) to another server(s). As there is no easy way to migrate the application files from one server to another server, you will need to re-install LYNQ mom and LYNQ api on the new Web Server. In addition, if you are hosting Visual APS on an application server, Visual APS must also be re-installed. Before starting the migration steps below, make a note of the versions that are currently installed. The same version or a higher version will need to be selected in the Product Updater when re-installing. To successfully migrate LYNQ to other servers, complete the steps below.
To check which version of Visual APS is installed:
- Open Visual APS on a working computer
- Select About
- Make a note of the build number installed.
To check which version of LYNQ mom is installed:
- Open LYNQ mom
- Select Help
- Make a note of the build number installed.
To check which version of LYNQ api is installed:
- Open LYNQ api
- Select Settings
- Select Licensing
- Make a note of the build number installed.
Step 1 Backup and Restore the SQL Databases
- Take full backups of all databases that form part of LYNQ
- ERP Database
- MOM Data
- MOM Data Live Statistics
- MOM Config
- MOM Logic
- MOM FA
- LYNQ api
- Restore backups of all databases to the new SQL Server
Step 2 Re-create the SQL User for LYNQ and any APS SQL users
- Create a new SQL user and password on the new SQL Server
- Open the SQL Management Studio
- Right Click on the Security Folder
- Select New
- Select Login
- Select the SQL Server Authentication Option
- Enter a Login Name
- Enter a Password
- Select the User Mapping Settings
- Select each database used by LYNQ and assign the db_owner database role
- ERP database(s)
- MOM Data database
- MOM Data Live database
- MOM Config database
- MOM Logic database
- MOM FA database
- LYNQ api database
- Select OK
- If you receive an error that the SQL user already exists, you should delete the SQL User from the database first.
- Select Databases
- Select the Database (i.e. ERP Database, repeat for all LYNQ databases)
- Select Security
- Select Users
- Right click on the SQL User you are trying to re-create and select delete
- Create SQL Windows Users/Groups or SQL Users for the APS users on the new SQL Server
- If APS users were connecting to the ERP database using the app role (see database connections in APS), you only need to add a user mapping for the public role for each user/group and ERP database.
- Alternatively assign explicit permissions as db_owner for each APS user or group.
Step 3 Re-install the LYNQ applications
- On the new Web Server load the Product Updater
- Complete a new installation of LYNQ mom (select the same build numbers or higher)
- Specify the following details in the configurator screen:
- SQL Server Name
- Database Names (enter the restored database names)
- SQL User and SQL Password details (new user details created in step 2)
- Administrator Names
- Complete a new installation of LYNQ api (select the same build numbers or higher)
- Specify the following details in the configurator screen:
- SQL Server Name
- LYNQ api Database Name (enter the restored database name)
- SQL User and SQL Password details (new user details created in step 2)
- Administrator Names
- Complete a new installation of LYNQ aps (application servers only)
Step 4 Update LYNQ settings which store SQL Server/Database Names
Some settings within LYNQ store the SQL Server and SQL Database Names. These settings should be updated to reflect the migrated installation
- Create new a Database Connection in Visual APS to open the company on the new SQL Server (complete on all APS Clients)
- Within Visual APS select File > Company Settings > Settings > Integration
- Change the MOM integration URL to the new server (only complete this once, this setting is stored within the ERP database)
- Within LYNQ mom select Settings
- Specify the correct host name in the LYNQ api settings section
- Click on Test
- Select the correct Instance
- Select Save
- Within LYNQ api select Instance Settings
- Edit each API instance and update
- Server
- User ID (created in Step 2)
- Password (created in Step 2)
- Database (this should be the ERP database
- Within LYNQ api open each instance and update the API Settings
- Check that any service URL's are specified correctly and update if the ERP api has been installed to a different server
- Under MOM Settings update
- Server
- User ID (created in Step 2)
- Password (created in Step 2)
- MOM Data Database (restored database name)
Once all 4 steps have been completed, LYNQ will be migrated and ready for use.
|