#!/usr/bin/env python
import pymysql
conn = pymysql.connect(host='localhost', user='root', passwd='cyrushellborg666', db='brewing')
cur = conn.cursor()
cur.execute("SHOW TABLES")
# print cur.description
# r = cur.fetchall()
# print r
# ...or...
for r in cur:
print r
cur.close()
conn.close()
Blog Archive
-
►
2011
(19)
-
►
June
(7)
- In list of numbers, find each pair that equals 100...
- Binary search in Perl, using CGI.pm and Ajax
- python: generate list of random alphnumeric string...
- View source of a malware website: http://bzowwjcr....
- Java: Write to File: Copy Bytes: Copy Music
- aLife cellular automata with sound output
- ascii to hex converter. useful for iwconfig key pa...
-
►
June
(7)
Sunday, January 1, 2012
MySQL Connect in Python
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment