Skip to content

Commit 6cf0b34

Browse files
authored
Update README.md
MySQL and ClickHouse configs collapsable
1 parent 120a37d commit 6cf0b34

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ For realtime data sync from MySQL to ClickHouse:
9393
1. Prepare config file. Use `example_config.yaml` as an example.
9494
2. Configure MySQL and ClickHouse servers:
9595
- MySQL server configuration file `my.cnf` should include following settings (required to write binary log in raw format, and enable password authentication):
96+
<details>
97+
<summary>🛠 MySQL Config</summary>
98+
9699
```ini
97100
[mysqld]
98101
# ... other settings ...
@@ -122,7 +125,13 @@ binlog_format ROW
122125
binlog_expire_logs_seconds 86400
123126
```
124127

128+
</details>
129+
125130
- ClickHouse server config `override.xml` should include following settings (it makes clickhouse apply final keyword automatically to handle updates correctly):
131+
132+
<details>
133+
<summary>🛠 ClickHouse Config</summary>
134+
126135
```xml
127136
<clickhouse>
128137
<!-- ... other settings ... -->
@@ -146,7 +155,7 @@ Execute the following command in clickhouse:
146155
Setting should be set to 1. If not, you should:
147156
* double check the `override.xml` is applied
148157
* try to modify `users.xml` instead
149-
158+
</details>
150159

151160
3. Start the replication:
152161

0 commit comments

Comments
 (0)