text: # mysql_test
  # Jason Palmeri
  # 1/27/2022
  
  import mysql.connector
  from mysql.connector import errorcode
  
  config = {
      "user": "pysports_user",
      "password": "MySQL8IsGreat!",
      "host": "127.0.0.1",
      "port": "3333",
      "database": "pysports",
      "raise_on_warnings": True
  }
  
  
  try:
      db = mysql.connector.connect(**config)
      print("\n Database User {} connected to MySQL on host {} with database {}".format(config["user"], config["host"], config["database"]))
      input("\n\n Press any key to continue...")
  except mysql.connector.Error as err:
      if err.errno == errorcode.ER_ACCESS_DENIED_ERROR:
          print("The Supploed username or password are invalid")
      elif err.errno == errorcode.ER_BAD_DB_ERROR:
          print("The specified database does not exist")
      else:
          print(err)
  finally:
      db.close()