Skip to content
2 changes: 1 addition & 1 deletion TOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
- [Constraints](/reference/sql/constraints.md)
- [Generated Columns](/reference/sql/generated-columns.md)
- [Partitioning](/reference/sql/partitioning.md)
- [Character Set](/reference/sql/character-set.md)
- [Character Set and Collation](/reference/sql/characterset-and-collation.md)
- [SQL Mode](/reference/sql/sql-mode.md)
- [SQL Diagnosis](/reference/system-databases/sql-diagnosis.md)
- [Views](/reference/sql/views.md)
Expand Down
6 changes: 6 additions & 0 deletions reference/configuration/tidb-server/configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ The TiDB configuration file supports more options than command-line parameters.
- Default value: []
- The list is empty by default. This means that there are no bad tables that need to be repaired.

### `new_collations_enabled_on_first_bootstrap`

- Enables or disables the new collation support.
- Default value: `false`
- Note: This configuration takes effect only for the TiDB cluster that is first initialized. After the initialization, you cannot use this configuration item to enable or disable the new collation support. When a TiDB cluster is upgraded to v4.0, because the cluster has been initialized before, both `true` and `false` values of this configuration item are taken as `false`.

### `max-server-connections`

- The maximum number of concurrent client connections allowed in TiDB. It is used to control resources.
Expand Down
10 changes: 0 additions & 10 deletions reference/mysql-compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ However, TiDB does not support some of MySQL features or behaves differently fro
+ `FOREIGN KEY` constraints
+ `FULLTEXT`/`SPATIAL` functions and indexes
+ Character sets other than `utf8`, `utf8mb4`, `ascii`, `latin1` and `binary`
+ Collations other than `BINARY`
+ Add/drop primary key
+ SYS schema
+ Optimizer trace
Expand Down Expand Up @@ -121,7 +120,6 @@ In TiDB DDL does not block reads or writes to tables while in operation. However
- Does not support lossy changes, such as from `BIGINT` to `INTEGER` or `VARCHAR(255)` to `VARCHAR(10)`.
- Does not support modifying the precision of `DECIMAL` data types.
- Does not support changing the `UNSIGNED` attribute.
- Only supports changing the `CHARACTER SET` attribute from `utf8` to `utf8mb4`.
+ `LOCK [=] {DEFAULT|NONE|SHARED|EXCLUSIVE}`: the syntax is supported, but is not applicable to TiDB. All DDL changes that are supported do not lock the table.
+ `ALGORITHM [=] {DEFAULT|INSTANT|INPLACE|COPY}`: the syntax for `ALGORITHM=INSTANT` and `ALGORITHM=INPLACE` is fully supported, but it works differently from MySQL because some operations that are `INPLACE` in MySQL are `INSTANT` in TiDB. The syntax `ALGORITHM=COPY` is not applicable to TIDB and returns a warning.
+ Multiple operations cannot be completed in a single `ALTER TABLE` statement. For example, it's not possible to add multiple columns or indexes in a single statement.
Expand Down Expand Up @@ -269,14 +267,6 @@ Because they are built-in, named time zones in TiDB might behave slightly differ

It is not recommended to unset the `NO_ZERO_DATE` and `NO_ZERO_IN_DATE` SQL modes, which are enabled by default in TiDB as in MySQL. While TiDB supports operating with these modes disabled, the TiKV coprocessor does not. Executing certain statements that push down date and time processing functions to TiKV might result in a statement error.

#### Handling of space at the end of string line

Currently, when inserting data, TiDB keeps the space at the end of the line for the `VARCHAR` type, and truncate the space for the `CHAR` type. In case there is no index, TiDB behaves exactly the same as MySQL.

If there is a `UNIQUE` index on the `VARCHAR` data, MySQL truncates the space at the end of the `VARCHAR` line before determining whether the data is duplicated, which is similar to the processing of the `CHAR` type, while TiDB keeps the space.

When making a comparison, MySQL first truncates the constant and the space at the end of the column, while TiDB keeps them to enable exact comparison.

### Type system differences

The following column types are supported by MySQL, but not by TiDB:
Expand Down
258 changes: 0 additions & 258 deletions reference/sql/character-set.md

This file was deleted.

Loading