MySQL Datenbank show databases


#!/usr/bin/python2.1
import MySQLdb

db = MySQLdb.connect(user="test", passwd="test", db="typefocus",
host="www.typefocus.de")

#db = MySQLdb.connect(db="test")

cursor = db.cursor()

cursor.execute('show databases')

#cursor.execute('select * from test')

results = cursor.fetchall()
print results