Installation Doc-MYSQL Clusterdeepakdba.com/wp-content/uploads/2013/07/MYSQL-Database-clust… ·...

15
Deepak Bhardwaj Installation Doc-MYSQL Cluster

Transcript of Installation Doc-MYSQL Clusterdeepakdba.com/wp-content/uploads/2013/07/MYSQL-Database-clust… ·...

Page 1: Installation Doc-MYSQL Clusterdeepakdba.com/wp-content/uploads/2013/07/MYSQL-Database-clust… · Deepak Bhardwaj Start with MYSQL Cluster Configuration Prerequisites The following

Deepak Bhardwaj

Installation Doc-MYSQL Cluster

Page 2: Installation Doc-MYSQL Clusterdeepakdba.com/wp-content/uploads/2013/07/MYSQL-Database-clust… · Deepak Bhardwaj Start with MYSQL Cluster Configuration Prerequisites The following

Deepak Bhardwaj

Start with MYSQL Cluster Configuration

Prerequisites The following prerequisites must be fulfilled before starting the MYSQL 5.1 Cluster

installation.

A).NET framework 3.5 SP1 must be installed on all the Nodes.

B).Clustered Disks for MYSQL Data files. These disks must not be

compressed (Figure 1). These drives are also visible in the Failover Cluster

Management Console (Figure 2). There should be different drives for each

Clustered Instance.

Note: MYSQL 5.1 Installation support one disk for Data files However, each instance

must have a separate disk Quorum, ROOT & MSDTC Drives.

C).No Antivirus software should be installed on the Nodes.

D).Add exceptions to firewall configuration settings for the MYSQL port,

File and Printer Sharing (TCP 139/445 and UDP 137/138), and

Remote Procedure Call (TCP port 135).

E).Remote Registry Service must be running.

F).The installing account must be a local administrator to the Nodes.

F).The MYSQL account should be from the same domain as the nodes.

G).Identify the network connections for Heartbeat, Backup & Production.

H).Copy the MYSQL media to the local disks of the nodes.

Figure 1

Page 3: Installation Doc-MYSQL Clusterdeepakdba.com/wp-content/uploads/2013/07/MYSQL-Database-clust… · Deepak Bhardwaj Start with MYSQL Cluster Configuration Prerequisites The following

Deepak Bhardwaj

Figure 2

The following information must be in your note book or Notepad before you start Installing

SQL Server failover cluster.

1. MYSQL Service Account(s)/Password(s).

2. MYSQL Cluster Network Name(s) & Instance Name(s).

3. MYSQL Cluster Network IP Address(s) for each Network Name.

4. Subnet Mask.

Note: The MYSQL binaries to make Cluster installations are to be performed on both the

nodes.

Page 4: Installation Doc-MYSQL Clusterdeepakdba.com/wp-content/uploads/2013/07/MYSQL-Database-clust… · Deepak Bhardwaj Start with MYSQL Cluster Configuration Prerequisites The following

Deepak Bhardwaj

Start with MYSQL Cluster Configuration

1. Double Click mysql-5.1.44-win32.msi and you get the installer screen.

The step by step screenshots are as below:

Page 5: Installation Doc-MYSQL Clusterdeepakdba.com/wp-content/uploads/2013/07/MYSQL-Database-clust… · Deepak Bhardwaj Start with MYSQL Cluster Configuration Prerequisites The following

Deepak Bhardwaj

2. Choose Complete in this Screen.

3. Now click Install.

Page 6: Installation Doc-MYSQL Clusterdeepakdba.com/wp-content/uploads/2013/07/MYSQL-Database-clust… · Deepak Bhardwaj Start with MYSQL Cluster Configuration Prerequisites The following

Deepak Bhardwaj

4. In The Following Screen Click Finish.

5. Choose Detailed Configuration in the following Screen and then Click Next.

Page 7: Installation Doc-MYSQL Clusterdeepakdba.com/wp-content/uploads/2013/07/MYSQL-Database-clust… · Deepak Bhardwaj Start with MYSQL Cluster Configuration Prerequisites The following

Deepak Bhardwaj

6. Choose Server machine and then click next.

Page 8: Installation Doc-MYSQL Clusterdeepakdba.com/wp-content/uploads/2013/07/MYSQL-Database-clust… · Deepak Bhardwaj Start with MYSQL Cluster Configuration Prerequisites The following

Deepak Bhardwaj

7. In the following screen choose multifunctional database and then click Next.

8. Click next in the following Screen.

Page 9: Installation Doc-MYSQL Clusterdeepakdba.com/wp-content/uploads/2013/07/MYSQL-Database-clust… · Deepak Bhardwaj Start with MYSQL Cluster Configuration Prerequisites The following

Deepak Bhardwaj

9. Choose OLTP in the following Screen.

10. In this Screen You can set the Port and add exception for the port in windows firewall.

Page 10: Installation Doc-MYSQL Clusterdeepakdba.com/wp-content/uploads/2013/07/MYSQL-Database-clust… · Deepak Bhardwaj Start with MYSQL Cluster Configuration Prerequisites The following

Deepak Bhardwaj

11. Choose Standard Character set in this screen.

12. In the following Screen Click Include Bin Directory in Windows PATH and then click next.

Page 11: Installation Doc-MYSQL Clusterdeepakdba.com/wp-content/uploads/2013/07/MYSQL-Database-clust… · Deepak Bhardwaj Start with MYSQL Cluster Configuration Prerequisites The following

Deepak Bhardwaj

13. Set the root password for mysql here.

14. Now click execute in the following screen.

Page 12: Installation Doc-MYSQL Clusterdeepakdba.com/wp-content/uploads/2013/07/MYSQL-Database-clust… · Deepak Bhardwaj Start with MYSQL Cluster Configuration Prerequisites The following

Deepak Bhardwaj

15. Click finish in the following screen.

16. Now MYSQL service and Database install in D drive.

D:\Program Files\MySQL\MySQL Server 5.1

17. Install the MYSQL DB service on the second node. 18. Now open the my.cnf and set the data directory and Base directory as given below.

D:\Program Files\MySQL\MySQL Server 5.1

Page 13: Installation Doc-MYSQL Clusterdeepakdba.com/wp-content/uploads/2013/07/MYSQL-Database-clust… · Deepak Bhardwaj Start with MYSQL Cluster Configuration Prerequisites The following

Deepak Bhardwaj

19. Now add the MYSQL service in OS cluster, once service adds in cluster group it will show as given below.

Page 14: Installation Doc-MYSQL Clusterdeepakdba.com/wp-content/uploads/2013/07/MYSQL-Database-clust… · Deepak Bhardwaj Start with MYSQL Cluster Configuration Prerequisites The following

Deepak Bhardwaj

20. Now you can use MYSQL in a high availability using below command.

Page 15: Installation Doc-MYSQL Clusterdeepakdba.com/wp-content/uploads/2013/07/MYSQL-Database-clust… · Deepak Bhardwaj Start with MYSQL Cluster Configuration Prerequisites The following

Deepak Bhardwaj

------------END OF THE DOCUMENT--------------