开源中国 2018 年度最后一场技术盛会邀你来约~错过就要等明年啦!点此立即预约

茹憶。 / LepusPython

Metrics
0
Watch 370 Star 816 Fork 356
Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
简洁、直观、强大的开源企业级数据库监控系统,MySQL/Oracle/MongoDB/Redis一站式监控,让数据库监控更简单。支持邮件告警、短信告警、AWR性能报告、慢查询分析等专业功能。 spread retract

http://www.oschina.net/p/lepus

tool_data_cleaning.py 398 Bytes
Copy Edit Web IDE Raw Blame History
ruzuojun authored 2017-08-07 15:36 . 代码目录调整,修改readme
#!/usr/bin/env python
#coding:utf-8
import os
import sys
import string
import time
import datetime
import MySQLdb
path='./include'
sys.path.insert(0,path)
import functions as func
def main():
try:
func.mysql_exec('delete from alarm_history;','')
except Exception, e:
print e
sys.exit(1)
finally:
sys.exit(1)
if __name__=='__main__':
main()

Comment ( 0 )

You need to Sign in for post a comment

Help Search