class_docstr: Executes sql code in a specific MySQL database.
  
  This class is deprecated.
  
  Please use :class:`airflow.providers.common.sql.operators.sql.SQLExecuteQueryOperator`.
  
  .. seealso::
      For more information on how to use this operator, take a look at the guide:
      :ref:`howto/operator:MySqlOperator`
  
  :param sql: the sql code to be executed. Can receive a str representing a
      sql statement, a list of str (sql statements), or reference to a template file.
      Template reference are recognized by str ending in '.sql'
      (templated)
  :param mysql_conn_id: Reference to :ref:`mysql connection id <howto/connection:mysql>`.
  :param parameters: (optional) the parameters to render the SQL query with.
      Template reference are recognized by str ending in '.json'
      (templated)
  :param autocommit: if True, each command is automatically committed.
      (default value: False)
  :param database: name of database which overwrite defined one in connection
code: def __init__(
      self,
      *,
      mysql_conn_id: str = "mysql_default",
      database: str | None = None,
      **kwargs,
  ) -> None:
      if database is not None:
          hook_params = kwargs.pop("hook_params", {})
          kwargs["hook_params"] = {"schema": database, **hook_params}
  
      super().__init__(conn_id=mysql_conn_id, **kwargs)
      warnings.warn(
          """This class is deprecated.
              Please use `airflow.providers.common.sql.operators.sql.SQLExecuteQueryOperator`.
              Also, you can provide `hook_params={'schema': <database>}`.""",
          AirflowProviderDeprecationWarning,
          stacklevel=2,
      )
  
file_path: airflow/airflow/providers/mysql/operators/mysql.py
imports: from __future__ import annotations
  import warnings
  from typing import Sequence
  from airflow.exceptions import AirflowProviderDeprecationWarning
  from airflow.providers.common.sql.operators.sql import SQLExecuteQueryOperator
label_desc: Use image node_id 1 to create a new MySqlOperator object from inherited base classes: SQLExecuteQueryOperator with example: obj = MySqlOperator()