> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-postgresql-tls-support.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# configurações de sessão mysql_*

> Configurações de sessão do ClickHouse no grupo mysql_* gerado automaticamente.

export const VersionHistory = ({rows = []}) => {
  if (rows.length === 0) {
    return null;
  }
  const headers = ["Versão", "Valor padrão", "Comentário"];
  const border = "1px solid rgba(128, 128, 128, 0.3)";
  const cell = {
    border,
    padding: "0.25rem 0.5rem",
    textAlign: "start",
    verticalAlign: "top"
  };
  return <details className="not-prose" style={{
    border,
    borderRadius: "0.5rem",
    margin: "0.5rem 0",
    padding: "0.5rem 0.75rem",
    fontSize: "0.8125rem",
    lineHeight: "1.125rem"
  }}>
      <summary style={{
    cursor: "pointer",
    fontWeight: 600,
    opacity: 0.72
  }}>
        Histórico de versões
      </summary>
      <table style={{
    borderCollapse: "collapse",
    width: "100%",
    margin: "0.5rem 0 0"
  }}>
        <thead>
          <tr>
            {headers.map(header => <th key={header} style={{
    ...cell,
    fontWeight: 600,
    opacity: 0.72
  }}>
                {header}
              </th>)}
          </tr>
        </thead>
        <tbody>
          {rows.map((row, row_index) => <tr key={row.id ?? row_index}>
              {(row.items ?? []).map((item, item_index) => <td key={item_index} style={{
    ...cell,
    overflowWrap: "anywhere"
  }}>
                  {item?.label}
                </td>)}
            </tr>)}
        </tbody>
      </table>
    </details>;
};

export const SettingsInfoBlock = ({type, default_value, changeable_without_restart}) => {
  return <div className="not-prose" style={{
    display: "flex",
    flexWrap: "wrap",
    alignItems: "baseline",
    columnGap: "0.5rem",
    rowGap: "0.125rem",
    margin: "0.375rem 0",
    fontSize: "0.8125rem",
    lineHeight: "1.125rem"
  }}>
      <div style={{
    fontWeight: 600,
    opacity: 0.72
  }}>Tipo</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{type}</div>
      <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>Padrão</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{default_value}</div>
      {changeable_without_restart && <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>
          Pode ser alterado sem reiniciar
        </div>}
      {changeable_without_restart && <div style={{
    overflowWrap: "anywhere"
  }}>
          {changeable_without_restart}
        </div>}
    </div>;
};

Essas configurações estão disponíveis em [system.settings](/pt-BR/reference/system-tables/settings) e são geradas automaticamente a partir do [código-fonte](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp).

<div id="mysql_datatypes_support_level">
  ## mysql\_datatypes\_support\_level
</div>

<SettingsInfoBlock type="MySQLDataTypesSupport" default_value="decimal,datetime64,date2Date32,geometry" />

Define como os tipos do MySQL são convertidos para os tipos correspondentes do ClickHouse. Uma lista separada por vírgulas com qualquer combinação de `decimal`, `datetime64`, `date2Date32`, `date2String` ou `geometry`. Todos os mapeamentos modernos (`decimal`, `datetime64`, `date2Date32`, `geometry`) são habilitados por padrão.

* `decimal`: converte os tipos `NUMERIC` e `DECIMAL` em `Decimal` quando a precisão permite.
* `datetime64`: converte os tipos `DATETIME` e `TIMESTAMP` em `DateTime64` em vez de `DateTime` quando a precisão não é `0`.
* `date2Date32`: converte `DATE` em `Date32` em vez de `Date`. Tem precedência sobre `date2String`.
* `date2String`: converte `DATE` em `String` em vez de `Date`. É sobrescrito por `datetime64`.
* `geometry`: converte os tipos espaciais do MySQL (`LINESTRING`, `POLYGON`, `MULTILINESTRING`, `MULTIPOLYGON`) para os tipos geométricos correspondentes do ClickHouse, e o tipo genérico `GEOMETRY` para o tipo `Geometry`. `POINT` é sempre convertido para `Point`, independentemente desta opção. Como uma coluna genérica `GEOMETRY` pode conter qualquer subtipo, ler um valor cujo subtipo não tem equivalente no ClickHouse (`MULTIPOINT`, `GEOMETRYCOLLECTION`) lança uma exceção no momento da leitura; colunas declaradas como `MULTIPOINT` ou `GEOMETRYCOLLECTION` são mapeadas para `String`.

<div id="mysql_max_rows_to_insert">
  ## mysql\_max\_rows\_to\_insert
</div>

<SettingsInfoBlock type="UInt64" default_value="65536" />

O número máximo de linhas na inserção em lote do MySQL para o motor de armazenamento MySQL
