Migrating EventLog Analyzer Data from MySQL to MSSQL Database

本文涉及的产品
云数据库 RDS SQL Server,独享型 2核4GB
云数据库 RDS MySQL Serverless,0.5-2RCU 50GB
简介: 自存一份备用.原文在 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
相关实践学习
基于CentOS快速搭建LAMP环境
本教程介绍如何搭建LAMP环境,其中LAMP分别代表Linux、Apache、MySQL和PHP。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助 &nbsp; &nbsp; 相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
目录
相关文章
|
2月前
|
存储 容灾 安全
在阿里云RDS(Relational Database Service)迁移前准备目标区域选择
在阿里云RDS(Relational Database Service)迁移前准备目标区域选择
23 3
|
2月前
|
存储 关系型数据库 数据库
进行RDS(Relational Database Service)迁移时,资源需求分析
进行RDS(Relational Database Service)迁移时,资源需求分析
30 3
|
2月前
|
SQL 运维 关系型数据库
在阿里云RDS(Relational Database Service)进行跨区域迁移
在阿里云RDS(Relational Database Service)进行跨区域迁移
39 2
|
2月前
|
存储 运维 容灾
在规划阿里云RDS(Relational Database Service)跨区迁移
在规划阿里云RDS(Relational Database Service)跨区迁移
38 1
|
4月前
|
存储 关系型数据库 MySQL
使用阿里云的数据传输服务DTS(Data Transmission Service)进行MySQL 5.6到MySQL 8.0的迁移
使用阿里云的数据传输服务DTS(Data Transmission Service)进行MySQL 5.6到MySQL 8.0的迁移
48 1
|
4月前
|
关系型数据库 MySQL
MySQL 报错 [ERROR] [FATAL] InnoDB: Table flags are 0 in the data dictionary but the flags in file
MySQL 报错 [ERROR] [FATAL] InnoDB: Table flags are 0 in the data dictionary but the flags in file
326 0
|
7月前
|
SQL 关系型数据库 MySQL
解决:MySQL找不到data文件的位置
解决:MySQL找不到data文件的位置
122 0
|
2月前
|
存储 监控 关系型数据库
在规划和准备阿里云RDS(Relational Database Service)跨区域迁移
在规划和准备阿里云RDS(Relational Database Service)跨区域迁移
19 1
|
2月前
|
SQL 关系型数据库 MySQL
MySQL技能完整学习列表10、数据导入和导出——1、数据导入(LOAD DATA, mysqldump)——2、数据导出(SELECT ... INTO OUTFILE, mysqldump)
MySQL技能完整学习列表10、数据导入和导出——1、数据导入(LOAD DATA, mysqldump)——2、数据导出(SELECT ... INTO OUTFILE, mysqldump)
49 0
|
4月前
|
SQL Oracle 关系型数据库
MySQL必知必会:MySQL中的Schema与DataBase
MySQL必知必会:MySQL中的Schema与DataBase

热门文章

最新文章