%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
import mysql.connector # Replace these with your actual MySQL database credentials db_config = { 'host': 'admissions.cluster-custom-c8m5zlhotfbm.ap-south-1.rds.amazonaws.com', 'user': 'shardezone_user', 'password': '7se%;pr*/A24AyTw', 'database': 'shardaac_ezone_2022_db' } try: # Establish a connection to the database connection = mysql.connector.connect(**db_config) if connection.is_connected(): print("Connected to MySQL database") # Create a cursor object to interact with the database cursor = connection.cursor() # Execute a SELECT statement select_query = "SELECT * FROM history limit 10" cursor.execute(select_query) # Fetch all rows rows = cursor.fetchall() # Display the fetched rows for row in rows: print(row) except mysql.connector.Error as e: print("Error:", e) finally: # Close the cursor and connection if 'cursor' in locals() and cursor is not None: cursor.close() if 'connection' in locals() and connection.is_connected(): connection.close() print("Connection closed")