HSG |
|
>>> import MySQLdb >>> con=MySQLdb.connect(host='hamsterrolle.hsg-kl.de', user='10abd0809', passwd='????????', ssl={'capath':'d:/www/hsg/faecher/inf/python/mysql'}) >>> cursor=con.cursor() >>> cursor.execute('show databases') 2L >>> cursor.fetchall() (('information_schema',), ('10abd0809',)) >>> con.close()