I have written a simple Python program to test a MySQL database connection. However, I am experiencing a "Cursor is not connected" error when I tr