https://github.com/tart/tart-monitoring
本帖最后由 yanyi3721 于 2014-05-21 20:08 编辑
写个脚本就可以了啊....
用python写的话大概就10行吧....
import MySQLdb
conn=MySQLdb.connect(host="localhost",user="root",passwd="",db="test",charset="utf8")
cursor = conn.cursor()
sql = 'check table %s' %(tablename)
n = cursor.execute(sql)
f=cursor.fetchall()
state=f
state就是结果 ok......
页:
[1]