秒杀MYSQL单双向同步(三)

2014-11-24 10:40:21 · 作者: · 浏览: 1
> b:

#os.system('clear')

print '--' * 35

print '\t\t1)Installation MySQL Master\n'

print '\t\t2)Installation MySQL Slave\n'

print '\t\tQ)Quit Installation\n'

print '--' * 35

if ('err' in dir()) is True:

print err

del err

info = raw_input('\t\tPlase,Enter your option:')

if info.lower() == 'q':

sys.exit()

elif info == '1':

m.sql()

m.mk()

m.master()

m.re()

elif info == '2':

m.mk()

m.slave()

m.re()

else:

err ='\t\t***You enter the option error***'

本文出自 “Intelligence” 博客