You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated to use @vlasky/mysql 2.18.5 that adds support for sending keepalive probe packets.
Can be enabled in the MySQL connection settings using the 'enableKeepAlive' and 'keepAliveInitialDelay' configuration options.
Updated text and hyperlinks in README.md.
Updated version to 0.5.7.
A MySQL 8.0-compatible fork of ZongJi - a MySQL binlog listener for Node.js, [originally created by Nevill Dutt](https://github.com/nevill/zongji).
3
2
4
-
ZongJi (踪迹) is pronounced as `zōng jì` in Chinese.
3
+
[@vlasky/zongji](https://github.com/vlasky/zongji) has been tested working with MySQL 5.5, 5.6, 5.7 and 8.0.
5
4
6
-
This package is a pure JS implementation based on [`mysql`](https://github.com/mysqljs/mysql). It has been tested to work in MySQL 5.5, 5.6, and 5.7.
5
+
It leverages [`@vlasky/mysql`](https://github.com/vlasky/mysql), a fork of [`mysql`](https://github.com/mysqljs/mysql) with the following enhancements:
6
+
7
+
* Support for authentication using the caching_sha2_password plugin, the new default authentication method in MySQL 8.0
8
+
* Partial support for the MySQL compressed protocol (reads compressed data sent by server)
9
+
* Optional sending of keepalive probe packets to check the state of the connection to the MySQL server and help keep the connection open when the network socket is idle
7
10
8
11
# Latest Release
9
12
@@ -34,7 +37,7 @@ For a complete implementation see [`example.js`](example.js)...
34
37
* Requires Node.js v8+
35
38
36
39
```bash
37
-
$ npm install zongji
40
+
$ npm install @vlasky/zongji
38
41
```
39
42
40
43
* Enable MySQL binlog in `my.cnf`, restart MySQL server after making the changes.
`serverId` | `integer` | [Unique number (1 - 2<sup>32</sup>)](http://dev.mysql.com/doc/refman/5.0/en/replication-options.html#option_mysqld_server-id) to identify this replication slave instance. Must be specified if running more than one instance of ZongJi. Must be used in `start()` method for effect.<br>**Default:**`1`
97
+
`serverId` | `integer` | [Unique number (1 - 2<sup>32</sup>)](https://dev.mysql.com/doc/refman/5.0/en/replication-options.html#option_mysqld_server-id) to identify this replication slave instance. Must be specified if running more than one instance of ZongJi. Must be used in `start()` method for effect.<br>**Default:**`1`
95
98
`startAtEnd` | `boolean` | Pass `true` to only emit binlog events that occur after ZongJi's instantiation. Must be used in `start()` method for effect.<br>**Default:**`false`
96
99
`filename` | `string` | Begin reading events from this binlog file. If specified together with `position`, will take precedence over `startAtEnd`.
97
100
`position` | `integer` | Begin reading events from this position. Must be included with `filename`.
@@ -108,11 +111,11 @@ Option Name | Type | Description
`intvar` | [Autoincrement and LAST_INSERT_ID](https://dev.mysql.com/doc/internals/en/intvar-event.html)
113
-
`rotate` | [New Binlog file](http://dev.mysql.com/doc/internals/en/rotate-event.html) Not required to be included to rotate to new files, but it is required to be included in order to keep the `filename` and `position` properties updated with current values for [graceful restarting on errors](https://gist.github.com/numtel/5b37b2a7f47b380c1a099596c6f3db2f).
`rotate` | [New Binlog file](https://dev.mysql.com/doc/internals/en/rotate-event.html) Not required to be included to rotate to new files, but it is required to be included in order to keep the `filename` and `position` properties updated with current values for [graceful restarting on errors](https://gist.github.com/numtel/5b37b2a7f47b380c1a099596c6f3db2f).
Copy file name to clipboardExpand all lines: package.json
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
{
2
2
"name": "@vlasky/zongji",
3
-
"version": "0.5.6",
4
-
"description": "A fork of nevill/zongji mysql binlog listener running on Node.js that uses @vlasky/mysql to allow partial support for the MySQL compressed protocol.",
3
+
"version": "0.5.7",
4
+
"description": "A MySQL 8.0-compatible fork of ZongJi - a MySQL binlog listener for Node.js.",
0 commit comments