hostname = raw_input("Enter hostname : ")
connection = MySQLdb.connect (host = "localhost", user = "hawkhost_databas", passwd = "}MFkdDI6]#QX", db = "hawkhost_database")
cursor = connection.cursor ()
cursor.execute ("select User, Hostname, Password, Port from dbinfo where hostname=%s", (hostname))
目前没有回答
相关问题 更多 >
编程相关推荐