Migrating NetFlow Analyzer configuration from MySQL to MSSQL Database
NetFlow Analyzer lets users to migrate the existing NetFlow Analyzer configuration available in MySQL database to MSSQL database.
The steps to migrate and run the NetFlow Analyzer server with SQLSERVER as the database is given below:
- Stop the NetFlow Analyzer Server/Service.
- Invoke the <NetFlow Analyzer Home>\troubleshooting\Mysql_Mssql_BackUpConfig.bat, to backup the configuration available in MySQL database and wait till the configuration backup gets completed. By default backup file will be stored under <NetFlow Analyzer Home>\backup directory with the file name like 'BackupConfig_NFA_<Build_Number>_MM_DD_YYYY_hh_mm.data'.
- From the installed MS SQL SERVER, copy the files bcp.exe and bcp.rll to <NetFlow Analyzer Home>\bin folder. Note: If the MSSQL server is 64-bit and NetFlow Analyzer is installed on 32-bit server, the bcp.exe and bcp.rll copied from the MSSQL server will not work, a 32-bit bcp.exe and bcp.rll is needed. Send us an email at email@example.com for further clarification.
- Go to the services window on the server where MSSQL is installed. If "SQL browser" service is not running, please start the service
- If the NetFlow Analyzer and MSSQL database is on the different server, Download the same version of MSSQL server Native client and install it on the NetFlow Analyzer server. This is needed for NetFlow Analyzer to communicate remote database server.
- Invoke the <NetFlow Analyzer Home>\bin\changeDBServer.bat, to configure the MS SQLSERVER credentials like ServerName, Port, UserName and Password.
- Database Setup Wizard pops-up.
- In the wizard screen, select Server Type as SQL Server. Available SQL Server Instances are listed in a combo box. Enter the Host Name and Port of the SQL Server from the instances. ( NetFlow Analyzer will work only with default instance)
- Select the authentication type using the "Connect Using:" options.
- The options are:
NOTE: If the SQL server and the NetFlow Analyzer installed server are in different domains, you can only use SQL authentication.
For Windows Authentication, enter the Domain Name, User Name and Password. Ensure that both NetFlow Analyzer server and SQL Server are in the same domain and logged in with the same Domain Administrator account.
SQL Server Authentication
For SQL Server Authentication, enter the User Name and Password.
- Click Test button to check whether the credentials are correct. If the test fails, the credentials may be wrong, recheck and enter the correct credentials.
- Click Save button to save the SQL Server configuration. Note that, it will take few minutes to configure the settings of the SQL Server database.
- Invoke the <NetFlow Analyzer Home>\bin\run.bat to start the NetFlow Analyzer server in the command prompt.
- After the server is started completely, stop the server by terminating the run.bat in the command prompt or invoke the <NetFlow Analyzer Home>\bin\shutdown.bat
- Invoke the <NetFlow Analyzer Home>\troubleshooting\Mysql_Mssql_RestoreConfig.bat
- Start the NetFlow Analyzer server/service.