This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import MySQLdb as mdb | |
import sys | |
try: | |
con = mdb.connect('localhost', 'USERNAME MYSQL', 'PASSWORD MYSQL', 'NAMA DATABASE'); | |
cur = con.cursor() | |
cur.execute("SELECT VERSION()") | |
ver = cur.fetchone() |