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))
cursor.execute ("select User, Hostname, Password, Port from dbinfo where Hostname= '%s'" % d)
This fixed the issue
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.