18
Last updated: December 3, 2014 MySQL Installation guide This guide will help you to install and configure MySQL for IQCare 3.6.0. IQCare 3.6.0 uses MySQL database for audit trail data storage. Please follow the following steps to install and configure MySQL on your server / machine. IQCare uses MySQL 5.6.14 version. - Click on mysql-installer-community-5.6.14.0.msi - Select “Install MySQL Products” - Select “Skip the check for updates” for speedy installation, you install the updates later. - On second screen, select “Full” setup option, press Next

s3.amazonaws.com Applicat… · Web viewLast updated: December 3, 2014MySQL Installation guide This guide will help you to install and configure MySQL for IQCare 3.6.0. IQCare 3.6.0

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: s3.amazonaws.com Applicat… · Web viewLast updated: December 3, 2014MySQL Installation guide This guide will help you to install and configure MySQL for IQCare 3.6.0. IQCare 3.6.0

Last updated: December 3, 2014

MySQL Installation guide

This guide will help you to install and configure MySQL for IQCare 3.6.0. IQCare 3.6.0 uses MySQL database for audit trail data storage. Please follow the following steps to install and configure MySQL on your server / machine.

IQCare uses MySQL 5.6.14 version.

- Click on mysql-installer-community-5.6.14.0.msi- Select “Install MySQL Products”

- Select “Skip the check for updates” for speedy installation, you install the updates later.- On second screen, select “Full” setup option, press Next

Page 2: s3.amazonaws.com Applicat… · Web viewLast updated: December 3, 2014MySQL Installation guide This guide will help you to install and configure MySQL for IQCare 3.6.0. IQCare 3.6.0

-

- Click Next to proceed

-

- Click Execute to run the setup.

Page 3: s3.amazonaws.com Applicat… · Web viewLast updated: December 3, 2014MySQL Installation guide This guide will help you to install and configure MySQL for IQCare 3.6.0. IQCare 3.6.0

-

- It will start the installation process

- Click Next after installation, to configure MySQL

Page 4: s3.amazonaws.com Applicat… · Web viewLast updated: December 3, 2014MySQL Installation guide This guide will help you to install and configure MySQL for IQCare 3.6.0. IQCare 3.6.0

- Click Next, to configure

- Click Next to enter other information

Page 5: s3.amazonaws.com Applicat… · Web viewLast updated: December 3, 2014MySQL Installation guide This guide will help you to install and configure MySQL for IQCare 3.6.0. IQCare 3.6.0

- Click Next to select more

Page 6: s3.amazonaws.com Applicat… · Web viewLast updated: December 3, 2014MySQL Installation guide This guide will help you to install and configure MySQL for IQCare 3.6.0. IQCare 3.6.0

- Click Next to finish installation

Enter the password “c0nstella”

Page 7: s3.amazonaws.com Applicat… · Web viewLast updated: December 3, 2014MySQL Installation guide This guide will help you to install and configure MySQL for IQCare 3.6.0. IQCare 3.6.0

IQCare Database creation in MySQL

- Open the MySQL query editor by clicking the Local instance MySQL box and then enter the password you entered in the set up.

Copy below SQL statement to create IQCare database and a stored procedureCREATE DATABASE IQCare;Use IQCare;CREATE TABLE tbl_iqcareaudit ( VisitId int(11) DEFAULT NULL, LocationId int(11) DEFAULT NULL, VisitDate datetime DEFAULT NULL, VisitType smallint(6) DEFAULT NULL, OperationType varchar(30) DEFAULT NULL, TableType varchar(5) DEFAULT NULL,TableName varchar(150) DEFAULT NULL, UserId varchar(10) DEFAULT NULL,FieldName varchar(150) DEFAULT NULL, OldValue varchar(1000) DEFAULT NULL, NewValue varchar(1000) DEFAULT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8;

Use IQCare;ALTER TABLE iqcare.tbl_iqcareaudit ADD ptn_pk int first;ALTER TABLE iqcare.tbl_iqcareaudit ADD createdate datetime;

Use IQCare;Drop procedure GetAuditTrails;DELIMITER $$CREATE PROCEDURE GetAuditTrails()BEGINSelect ptn_pk, VisitId, LocationId, visitdate, VisitType, OperationType, TableName, UserId, FieldName, OldValue, NewValue, createdate from tbl_iqcareaudit;END

Page 8: s3.amazonaws.com Applicat… · Web viewLast updated: December 3, 2014MySQL Installation guide This guide will help you to install and configure MySQL for IQCare 3.6.0. IQCare 3.6.0

- You can find IQCare database, table and stored procedure in your MySQL.

Page 9: s3.amazonaws.com Applicat… · Web viewLast updated: December 3, 2014MySQL Installation guide This guide will help you to install and configure MySQL for IQCare 3.6.0. IQCare 3.6.0

MySQL ODBC configuration steps

- On your computer open the Control Panel, Click on Administrative Tools.

- double click on ODBC Data Sources to configure for 64 bit machine. It will have same steps for 32 bit machine as well. Please Configure for System DSN as well same way as User DSN.

Page 10: s3.amazonaws.com Applicat… · Web viewLast updated: December 3, 2014MySQL Installation guide This guide will help you to install and configure MySQL for IQCare 3.6.0. IQCare 3.6.0

- Enter data source name “MySQL56” (instance of MySQL), credentials to connect and database – in this case it’s IQCare.

Page 11: s3.amazonaws.com Applicat… · Web viewLast updated: December 3, 2014MySQL Installation guide This guide will help you to install and configure MySQL for IQCare 3.6.0. IQCare 3.6.0

Steps to Create Scheduler

Click Control Panel and Select Administrative Tool

Double click on Task Scheduler

Page 12: s3.amazonaws.com Applicat… · Web viewLast updated: December 3, 2014MySQL Installation guide This guide will help you to install and configure MySQL for IQCare 3.6.0. IQCare 3.6.0

Click Create task… under Actions

Enter the task name

Click on Trigger Tab and click New…

Page 13: s3.amazonaws.com Applicat… · Web viewLast updated: December 3, 2014MySQL Installation guide This guide will help you to install and configure MySQL for IQCare 3.6.0. IQCare 3.6.0

Specify Time like by selecting Radio Delete and repeat task every 1 hour

Page 14: s3.amazonaws.com Applicat… · Web viewLast updated: December 3, 2014MySQL Installation guide This guide will help you to install and configure MySQL for IQCare 3.6.0. IQCare 3.6.0

Click on Actions Tab and select New. Select action – Start a Program

Select Backup.bat from folder in C:\Backup – or the location you had restored it. Press OK to finish.

Page 15: s3.amazonaws.com Applicat… · Web viewLast updated: December 3, 2014MySQL Installation guide This guide will help you to install and configure MySQL for IQCare 3.6.0. IQCare 3.6.0
Page 16: s3.amazonaws.com Applicat… · Web viewLast updated: December 3, 2014MySQL Installation guide This guide will help you to install and configure MySQL for IQCare 3.6.0. IQCare 3.6.0

Create a linked server in SQL Server

- Please run the following SQL in SQL Server to create a Linked Server with MySQL.

Please get the latest version of the script.

USE [master]

GO/****** Object: LinkedServer [MySQL] Script Date: 9/10/2014 4:03:19 PM ******/EXEC master.dbo.sp_addlinkedserver @server = N'MySQL', @srvproduct=N'MySQL', @provider=N'MSDASQL', @datasrc=N'MySQL', @provstr=N'DRIVER={MySQL ODBC 5.3 ANSI Driver}; SERVER=localhost; PORT=3306; USER=root; PASSWORD=c0nstella; OPTION=3;' /* For security reasons the linked server remote logins password is changed with ######## */EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'MySQL',@useself=N'True',@locallogin=NULL,@rmtuser=NULL,@rmtpassword=NULLGOEXEC master.dbo.sp_serveroption @server=N'MySQL', @optname=N'collation compatible', @optvalue=N'false'GOEXEC master.dbo.sp_serveroption @server=N'MySQL', @optname=N'data access', @optvalue=N'true'GOEXEC master.dbo.sp_serveroption @server=N'MySQL', @optname=N'dist', @optvalue=N'false'GOEXEC master.dbo.sp_serveroption @server=N'MySQL', @optname=N'pub', @optvalue=N'false'GOEXEC master.dbo.sp_serveroption @server=N'MySQL', @optname=N'rpc', @optvalue=N'false'GOEXEC master.dbo.sp_serveroption @server=N'MySQL', @optname=N'rpc out', @optvalue=N'false'GOEXEC master.dbo.sp_serveroption @server=N'MySQL', @optname=N'sub', @optvalue=N'false'GOEXEC master.dbo.sp_serveroption @server=N'MySQL', @optname=N'connect timeout', @optvalue=N'0'GOEXEC master.dbo.sp_serveroption @server=N'MySQL', @optname=N'collation name', @optvalue=nullGOEXEC master.dbo.sp_serveroption @server=N'MySQL', @optname=N'lazy schema validation', @optvalue=N'false'GOEXEC master.dbo.sp_serveroption @server=N'MySQL', @optname=N'query timeout', @optvalue=N'0'GOEXEC master.dbo.sp_serveroption @server=N'MySQL', @optname=N'use remote collation', @optvalue=N'true'GOEXEC master.dbo.sp_serveroption @server=N'MySQL', @optname=N'remote proc transaction promotion', @optvalue=N'true'GO