text: import mysql.connector
  from mysql.connector import Error
  try:
      connection = mysql.connector.connect(host='127.0.0.1', database='secret', user='lotusp', password='P@ssw0rd0829')
      if connection.is_connected():
         db_Info = connection.get_server_info()
         print("Connected to MySQL database... MySQL Server version on ",db_Info)
         cursor = connection.cursor()
         cursor.execute("select database();")
         record = cursor.fetchone()
         print ("Your connected to - ", record)
  except Error as e :
      print ("Error while connecting to MySQL", e)
  finally:
      #closing database connection.
      if(connection.is_connected()):
          cursor.close()
          connection.close()
          print("MySQL connection is closed")
  
  