mysql4.0做主从时主库的备份脚本(二)
break
except MySQLdb.Error,e:
text = e.args
print text
self.log_w(text)
def work(self):
t = threading.Thread(target=self.lock, args=())
t.start()
if __name__ == "__main__":
boss = mysql_dump()
boss.work()