def METHOD_NAME(
    self, *args: Any, alias: str, show_mysql: bool, show_dsn: bool, **options: Any
) -> None:
    try:
        connection = connections[alias]
    except ConnectionDoesNotExist:
        raise CommandError(f"Connection {alias!r} does not exist")
    if connection.vendor != "mysql":
        raise CommandError(f"{alias!r} is not a MySQL database connection")
    if show_mysql and show_dsn:
        raise CommandError("Pass only one of --mysql and --dsn")
    elif not show_mysql and not show_dsn:
        show_mysql = True
    settings_dict: dict[str, Any] = connection.settings_dict
    if show_mysql:
        self.output_for_mysql(settings_dict)
    elif show_dsn:
        self.output_for_dsn(settings_dict)
    else:  # pragma: no cover
        raise AssertionError("Impossible")