Python Module Mysql-connector Does Not See New Changes
问题 I use mysql.connector to fetch rows in a python script but when I update a table the I don't see the changes. My code is: import mysql.connector database = mysql.connector.connect(host='localhost', user='root', passwd='password', database='my_db') cursor = database.cursor() cursor.execute('SELECT * FROM my_table') print(cursor.fetchall()) cursor.execute('SELECT * FROM my_table') print(cursor.fetchall()) In first time it reads the correct values but at the second time it reads the same values