I use pymysql.cursors and a simplified code example that loads a row from a table and prints it every second:
#!/usr/bin/env python3 import pymysql.cursors import time conn = pymysql.connect(host='localhost',
A state is a single row table in the MariaDb database.
Now that this is done, if I start the MySQL client and modify the contents of the table, this script funly deflates the original value; that is, he apparently does not consult the database (!).
I am new to Python and I am definitely new to PyMySQL, so it states that if this is a stupid question, but I have RTM a bit, and it looks weird.
source share