PHP无法捕获Percona集群上的MySQL binlog事件

PHP无法捕获Percona集群上的MySQL binlog事件,php,mysql,percona-xtradb-cluster,Php,Mysql,Percona Xtradb Cluster,我在这里使用这个软件包: 我已经能够在我的本地mysql数据库上测试一个非常简单的应用程序,它可以正常工作 然而,一旦我将测试转移到生产系统,它似乎已经停止工作 现在,我的本地系统和产品之间存在一些自然差异,我在下面概述了这些差异 PHP版本:7.4.9 mysql版本:5.7.30-33-57-log Percona XtraDB Cluster(GPL),rel33发行版,5dd6d59修订版,WSREP版本31.43,WSREP_31.43 应用程序本身非常简单。它连接到数据库,侦听任

我在这里使用这个软件包:

我已经能够在我的本地mysql数据库上测试一个非常简单的应用程序,它可以正常工作

然而,一旦我将测试转移到生产系统,它似乎已经停止工作

现在,我的本地系统和产品之间存在一些自然差异,我在下面概述了这些差异

  • PHP版本:7.4.9
  • mysql版本:5.7.30-33-57-log Percona XtraDB Cluster(GPL),rel33发行版,5dd6d59修订版,WSREP版本31.43,WSREP_31.43
应用程序本身非常简单。它连接到数据库,侦听任何和所有binlog事件,并在运行时将其转储到控制台:


mysql> SHOW variables WHERE variable_name LIKE "%binlog%";
+--------------------------------------------+----------------------+
| Variable_name                              | Value                |
+--------------------------------------------+----------------------+
| binlog_cache_size                          | 32768                |
| binlog_checksum                            | CRC32                |
| binlog_direct_non_transactional_updates    | OFF                  |
| binlog_error_action                        | ABORT_SERVER         |
| binlog_format                              | ROW                  |
| binlog_group_commit_sync_delay             | 0                    |
| binlog_group_commit_sync_no_delay_count    | 0                    |
| binlog_gtid_simple_recovery                | ON                   |
| binlog_max_flush_queue_time                | 0                    |
| binlog_order_commits                       | ON                   |
| binlog_row_image                           | FULL                 |
| binlog_rows_query_log_events               | OFF                  |
| binlog_skip_flush_commands                 | OFF                  |
| binlog_space_limit                         | 0                    |
| binlog_stmt_cache_size                     | 32768                |
| binlog_transaction_dependency_history_size | 25000                |
| binlog_transaction_dependency_tracking     | COMMIT_ORDER         |
| encrypt_binlog                             | OFF                  |
| have_backup_safe_binlog_info               | YES                  |
| innodb_api_enable_binlog                   | OFF                  |
| innodb_locks_unsafe_for_binlog             | OFF                  |
| log_statements_unsafe_for_binlog           | ON                   |
| max_binlog_cache_size                      | 18446744073709547520 |
| max_binlog_files                           | 0                    |
| max_binlog_size                            | 1073741824           |
| max_binlog_stmt_cache_size                 | 18446744073709547520 |
| sync_binlog                                | 1                    |
| wsrep_forced_binlog_format                 | NONE                 |
+--------------------------------------------+----------------------+
28 rows in set (0.00 sec)
mysql> SHOW variables WHERE variable_name LIKE "server_%";
+----------------+--------------------------------------+
| Variable_name  | Value                                |
+----------------+--------------------------------------+
| server_id      | 3                                    |
| server_id_bits | 32                                   |
| server_uuid    | 4fe64515-be6b-11e9-8e7f-026f00293d26 |
+----------------+--------------------------------------+
3 rows in set (0.00 sec)
{
    "type": "heartbeat",
    "eventInfo": {
        "timestamp": 0,
        "type": 27,
        "id": 3,
        "size": 39,
        "pos": 11890,
        "flag": 0,
        "checkSum": true,
        "sizeNoHeader": null,
        "dateTime": null,
        "binLogCurrent": {
            "binLogPosition": 11890,
            "binFileName": "mysql-bin.000016",
            "gtid": null,
            "mariaDbGtid": null
        }
    },
    "subject": null,
    "arguments": null
}{
    "type": "heartbeat",
    "eventInfo": {
        "timestamp": 0,
        "type": 27,
        "id": 3,
        "size": 39,
        "pos": 11890,
        "flag": 0,
        "checkSum": true,
        "sizeNoHeader": null,
        "dateTime": null,
        "binLogCurrent": {
            "binLogPosition": 11890,
            "binFileName": "mysql-bin.000016",
            "gtid": null,
            "mariaDbGtid": null
        }
    },
    "subject": null,
    "arguments": null
}
...