#!/usr/bin/env python3
import mysql.connector
mydb = mysql.connector.connect(
host="localhost",
user="user",
password="password"
)
mydb.commit()
#print(str(dir(mydb)))
cur = mydb.cursor()
cmd="USE mydb;"
cur.execute(cmd)
cmd = "SELECT * FROM table1;"
cur.execute(cmd)
print(str(dir(cur)))
faces_data = cur.fethmany()
AttributeError: 'MySQLCursor' object has no attribute 'fethmany'