class_docstr: This handler handles connection and execution of the MySQL statements.
class_docstr_tok: ["This","handler","handles","connection","and","execution","of","the","MySQL","statements","."]
code: def __init__(self, name, **kwargs):
      super().__init__(name)
      self.mysql_url = None
      self.parser = parse_sql
      self.dialect = "mysql"
      self.connection_data = kwargs.get("connection_data", {})
      self.database = self.connection_data.get("database")
  
      self.connection = None
      self.is_connected = False
  
imports: from collections import OrderedDict
  import pandas
  import mysql.connector
  from urllib.parse import urlparse
  from sqlalchemy import create_engine
  from mindsdb_sql import parse_sql
  from mindsdb_sql.render.sqlalchemy_render import SqlalchemyRender
  from mindsdb_sql.parser.ast.base import ASTNode
  from mindsdb.utilities import log
  from mindsdb.integrations.libs.base import DatabaseHandler
  from mindsdb.integrations.libs.response import HandlerStatusResponse, HandlerResponse, RESPONSE_TYPE
  from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE
label_desc: Use image node_id 1 to create a new MySQLHandler object from inherited base classes: DatabaseHandler with example: obj = MySQLHandler(name)