Parameter Name | Default Value | Whether Restart Required | Primary Function | Recommended Configuration |
UTF8 | Yes | Server default character set | Select based on business requirements. | |
STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION | No | SQL syntax and data validation rules | Configure based on business scenarios and development practices. | |
1 | No | Slow query threshold time | Adjust based on customer business scenarios and performance sensitivity. | |
ON | No | DDL online replication mode switch | Keep enabled by default. | |
64MB | No | Single-row record size limitation | Keep the default configuration. | |
ON | No | Flashback query feature switch | It is recommended to enable. |
Character Set | Characteristic | Scenarios |
LATIN1 | English characters, each character occupies one byte. | English-only application. |
UTF8 | International encoding contains characters needed by all countries worldwide. One character occupies three bytes. | Multilingual support with strong versatility. |
UTF8MB4 | UTF8 superset, fully backward compatible, one character occupies four bytes. | Supports special characters such as emojis. |
GBK | Double-byte character set, meaning that regardless of Chinese or English characters, all are represented using two bytes. | Simplified Chinese environment. |
GB18030 | The latest national standard Chinese character set, which is a superset of GBK, includes all characters of GBK and additionally supports more Chinese characters and Chinese minority scripts. | Comprehensive Chinese character support. |
UJIS | Japanese encoding. English characters occupy one byte, while Japanese characters (kanji, kana, and so on) occupy two bytes. | Limited to Japanese environments, especially for compatibility with legacy Japanese systems. |
STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTIONONLY_FULL_GROUP_BY, STRICT_TRANS_TABLES, NO_ZERO_IN_DATE, NO_ZERO_DATE, ERROR_FOR_DIVISION_BY_ZERO, NO_ENGINE_SUBSTITUTION. TDSQL Boundless does not enable date validation (such as NO_ZERO_DATE) and strict GROUP BY checking, offering better compatibility but looser data validation. For stricter data validation, manually adjust sql_mode.STRICT_TRANS_TABLES, NO_ENGINE_SUBSTITUTION. Among these:STRICT_TRANS_TABLES enables strict mode for transactional tables, controlling how invalid or missing data values are handled. If invalid values are inserted, such as out-of-range values, excessively long strings, or missing values in NOT NULL columns, the strict mode for transactional tables reports an error and rejects the operation. The NO_ZERO_IN_DATE, NO_ZERO_DATE, and ERROR_FOR_DIVISION_BY_ZERO modes define what constitutes invalid data, while STRICT_TRANS_TABLES defines how to handle such invalid data when it is encountered.NO_ZERO_IN_DATE controls whether months and days in dates can contain zero, and this is affected by whether strict mode is enabled.NO_ZERO_DATE disallows inserting zero dates into the database, and this behavior is affected by whether strict mode is enabled.ERROR_FOR_DIVISION_BY_ZERO In strict mode, if data is divided by zero during INSERT or UPDATE operations, an error is generated instead of a warning. In non-strict mode, NULL is returned when division by zero occurs.ONLY_FULL_GROUP_BY indicates that in GROUP BY aggregation operations, columns in the SELECT, HAVING, or ORDER BY clauses must either appear in the GROUP BY clause or be functional dependencies of the GROUP BY columns.ONLY_FULL_GROUP_BY configuration within its parameter values, if an old connection is persistent, the change remains session-level. Therefore, after the ONLY_FULL_GROUP_BY configuration is modified, it takes effect for new connections, but may not apply to existing ones until they are disconnected and reconnected.NO_AUTO_CREATE_USER forbids GRANT from creating users with empty passwords.NO_ENGINE_SUBSTITUTION throws an error if the storage engine used is disabled or not compiled.ADD COLUMN DEFAULT (a+a)), or altering tables with triggers, you can temporarily disable Online DDL mode by executing set tdsql_use_online_copy_ddl = 0, then retry.Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários