Migrating EventLog Analyzer Data from MySQL to MSSQL Database

本文涉及的产品
RDS MySQL DuckDB 分析主实例,集群系列 4核8GB
简介: 自存一份备用.原文在 http://www.manageengine.com/products/eventlog/help/appendix/migrating-data-mysql-mssql-database.

自存一份备用.原文在 http://www.manageengine.com/products/eventlog/help/appendix/migrating-data-mysql-mssql-database.html

 

note Post database change steps for Managed Server

 

When the Managed Server is installed, it is registered with Admin Server as Managed Server with MySQL.

If the database of the Managed Server is changed from MySQL to MSSQL, it has to be re-registerd with Admin Server as Managed Server with MSSQL.

After changing the database, when the Managed Server is started as application, it will prompt the user to re-register with the Admin Server.

After changing the database, when the Managed Server is started as service, there will not be any prompt to re-register. User has to ensure that the Managed Server is re-registered with the Admin Server.

 

EventLog Analyzer lets users to migrate the existing EventLog Analyzer data available in MySQL database to MSSQL database.

This procedure is applicable only if you are already using the EventLog Analyzer with MySQL and you want to change the database to MSSQL.

If you want to configure the MSSQL for fresh installation of EventLog Analyzer server, please refer the Configuring MSSQL Database page and follow the procedure given there.

The steps to migrate and run the Eventlog Analyzer server with SQLSERVER as the database is given below:

  1. Stop the Eventlog Analyzer Server/Service.
  2. Invoke the <Eventlog Analyzer Home>/tools/backUpDatabase.bat in command prompt, to backup the data available in MySQL database and wait till the data backup is getting completed. By default backup file will be stored under <Eventlog Analyzer Home>/backup directory with the file name like ‘backup_eventlog_<Build_Number>_MM_DD_YYYY_hh_mm.data‘.
  3. From the installed MS SQLSERVER, copy the files bcp.exe and bcp.rll to <Eventlog Analyzer Home>/mysql/bin folder.
note Note: If you are copying the above file from SQL Server (Version 2005 & above) installed server and the EventLog Analyzer is installed in other machine, please install the following SQL Native Client in the EventLog Analyzer machine as per the SQL vesion and CPU type of EventLog Analyzer machine.

 

MSSQL 2005 (32 bit)

http://download.microsoft.com/download/4/4/d/44dbde61-b385-4fc2-a67d-48053b8f9fad/sqlncli.msi

MSSQL 2005 (64 bit)

http://download.microsoft.com/download/4/4/d/44dbde61-b385-4fc2-a67d-48053b8f9fad/sqlncli_x64.msi

MSSQL 2008 (32 bit)

http://go.microsoft.com/fwlink/?LinkId=123717&clcid=0×409

MSSQL 2008 (64 bit)

http://go.microsoft.com/fwlink/?LinkId=123718&clcid=0×409

  1. Invoke the <Eventlog Analyzer Home>/tools/changeDBServer.bat in command prompt, to configure the MS SQLSERVER credentials like ServerName, Port, UserName and Password.
  2. Database Setup Wizard pops-up.
  3. 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.
  4. Select the authentication type using the “Connect Using:” options.
  5. The options are:
    1. Windows Authentication

    For Windows Authentication, enter the Domain Name, User Name and Password. Ensure that both EventLog Analyzer server and SQL Server are in the same domain and logged in with the same Domain Administrator account.

Windows Authentication

  1.  
    1. SQL Server Authentication

    For SQL Server Authentication, enter the User Name and Password.

SQL Authentication

  1. 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.
  2. 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.
  3. Invoke the <Eventlog Analyzer Home>/bin/run.bat to start the Eventlog Analyzer server in the command prompt.
  4. After the server is started completely, stop the server by terminating the run.bat in the command prompt or invoke the <Eventlog Analyzer Home>/bin/shutdown.bat
  5. Invoke the <Eventlog Analyzer Home>/tools/restoreDatabase.bat, browse and select the created backup file. Now click on ‘OK‘ and wait till the database is completely restored.

Restore data

note Executing the restoreDatabase.bat will delete the existing data, if any.

 

  1. Start the Eventlog Analyzer Server/Service to work with the MS SQLSERVER as the database.

note You can also change the backup directory. Execute the batch file to backup by passing the absolute path of the directory as argument in the command prompt. Example command execution as follows:
<Eventlog Analyzer Home>/tools:/>backUpDatabase.bat D:/Mysql
相关实践学习
每个IT人都想学的“Web应用上云经典架构”实战
本实验从Web应用上云这个最基本的、最普遍的需求出发,帮助IT从业者们通过“阿里云Web应用上云解决方案”,了解一个企业级Web应用上云的常见架构,了解如何构建一个高可用、可扩展的企业级应用架构。
MySQL数据库入门学习
本课程通过最流行的开源数据库MySQL带你了解数据库的世界。 &nbsp; 相关的阿里云产品:云数据库RDS MySQL 版 阿里云关系型数据库RDS(Relational Database Service)是一种稳定可靠、可弹性伸缩的在线数据库服务,提供容灾、备份、恢复、迁移等方面的全套解决方案,彻底解决数据库运维的烦恼。 了解产品详情:&nbsp;https://www.aliyun.com/product/rds/mysql&nbsp;
目录
相关文章
|
存储 容灾 安全
在阿里云RDS(Relational Database Service)迁移前准备目标区域选择
在阿里云RDS(Relational Database Service)迁移前准备目标区域选择
167 3
|
存储 关系型数据库 数据库
进行RDS(Relational Database Service)迁移时,资源需求分析
进行RDS(Relational Database Service)迁移时,资源需求分析
190 3
|
存储 关系型数据库 MySQL
环比、环比增长率、同比、同比增长率 ,占比,Mysql 8.0 实例(最简单的方法之一)(sample database classicmodels _No.2 )
环比、环比增长率、同比、同比增长率 ,占比,Mysql 8.0 实例(最简单的方法之一)(sample database classicmodels _No.2 )
530 1
|
SQL 前端开发 关系型数据库
全表数据核对 ,行数据核对,列数据核对,Mysql 8.0 实例(sample database classicmodels _No.3 )
全表数据核对 ,行数据核对,列数据核对,Mysql 8.0 实例(sample database classicmodels _No.3 )
332 0
全表数据核对 ,行数据核对,列数据核对,Mysql 8.0 实例(sample database classicmodels _No.3 )
|
关系型数据库 MySQL 数据库
mysql 8.0 递归(例子分享)(sample database classicmodels _No.4)
本文介绍了如何在MySQL8.0中使用递归查询处理部门表和员工表的树形结构数据,包括查看文档、准备数据、递归处理以及提取层级信息。作者通过示例展示了WITHRECURSIVE语句的应用及其在数仓中的结构表示。
254 2
|
安全 关系型数据库 MySQL
mysql8.0 正值表达式Regular expressions (sample database classicmodels _No.5)
本文介绍了MySQL8.0中的正值表达式及其相关函数,通过实例展示了如何使用正则表达式进行字符串匹配,并提出了关于执行效率的问题。
346 1
|
SQL 关系型数据库 MySQL
介绍5款 世界范围内比较广的 5款 mysql Database Management Tool
介绍5款 世界范围内比较广的 5款 mysql Database Management Tool
696 0
|
算法 关系型数据库 MySQL
复购率 mysql 实例(sample database classicmodels _No.1 )
复购率 mysql 实例(sample database classicmodels _No.1 )
284 0
|
存储 SQL 关系型数据库
在 MySQL 中使用 Drop Database
【8月更文挑战第11天】
657 0
在 MySQL 中使用 Drop Database
|
SQL 关系型数据库 MySQL
MySQL Online DDL(Data Definition Language)
MySQL Online DDL(Data Definition Language)
290 1

推荐镜像

更多