MySQL Configuration
MySQL parameters are used to customize rules for MySQL script migration.
Open the features-mysql.properties file in the config folder and configure Parameters in the features-mysql.properties file as required.
Parameter |
Description |
Value Range |
Default Value |
Example |
---|---|---|---|---|
|
Whether to use a database name as the schema name. If a database name does not exist, the user-defined schema specified by table.schema will be used. If table.schema is not specified, the default schema will be used. |
|
|
|
|
Name of the user-defined schema. If this parameter is specified, it will be directly used. In this case, even if useDatabaseAsSchema is set to true, the name of the current schema will be used. |
|
|
|
|
Default data storage mode. Value ROW means row storage, and value COLUMN means column storage. |
|
|
|
|
Default table type, which can be partitioned table, replication table, round-robin table, and hash table. |
|
|
|
|
Tablespace options |
|
|
|
|
Policy for selecting the partition key |
|
|
|
|
Partition key. If this parameter is not specified, the default selection policy will be used. If there are multiple columns, separate them with commas (,). The column names are case insensitive. |
|
|
|
|
Compression mode. If keyword COMPRESS is specified in CREATE TABLE, the compression feature will be triggered in the case of bulk INSERT operations. If this feature is enabled, a scan will be performed on all tuple data within the page to generate a dictionary and then the tuple data will be compressed and stored. If NOCOMPRESS is used, tables will not be compressed. |
|
|
|
Compression level of table data. It determines the compression ratio and duration. |
||||
|
Table data compression ratio and duration at the same compression level. This divides a compression level into sublevels, providing more choices for the compression ratio and duration. As the value becomes larger, the compression ratio becomes higher and duration longer at the same compression level. |
|
|
|
|
Database template |
|
|
table.database.template=template0 |
|
A database code. |
|
|
table.database.encoding=UTF8 |
|
Whether to rename an index when creating the index. |
|
false |
table.index.rename=false |
|
Whether all non-aggregation columns after SELECT are displayed in GROUP BY. |
|
true |
table.database.onlyFullGroupBy=true |
|
Used for converting the data type. The default value is false, indicating that the data type is converted to DOUBLE PRECISION. When the value is changed to true, the data type is converted to REAL. |
|
false |
table.database.realAsFloat=false |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot