#!/usr/bin/python import urllib2, urllib, string, re, os, struct import base64, string, gzip, sys, time, commands import getopt import MySQL #---------------------------------------------- ### Create the object we will use for the rest of this script. options = {} ## If you want to parse the options yourself, uncomment lines below. ## An empty options hash will result in the object getting the line commands ## by itself. #Args = [] #optlist = {} #Opts = "ms:p:l:c:" #Long = ['master', 'slave=', 'prefix=', 'log=', 'cluster='] #try: Args = sys.argv[1:] #except: pass #opts, args = getopt.getopt(Args, Opts, Long) #for o, a in opts: optlist[o] = a #options = optlist M_Obj = MySQL.Installer(options=options) #-------------------------------------------------------- ### Build and install the mysql binaries. These binaries will be common ### with all the mysql services. print M_Obj M_Obj.Write_Compile_Script() M_Obj.Execute_Compile_Script() M_Obj.Stop_Instances() ### In case there are any running. M_Obj.Setup_Instances() M_Obj.Start_Instances() M_Obj.Create_Test_Scripts()