PHP code example of ridibooks / php-binlog-collector

1. Go to this page and download the library: Download ridibooks/php-binlog-collector library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ridibooks / php-binlog-collector example snippets

sh
php [every]binlog_collect_partitioner.php change_pos [binLogFileName] [binLogPosition]
    'ex) php [every]binlog_collect_partitioner.php change_pos mariadb-bin.000003 36755'
sh
php [every]binlog_collect_partitioner.php continue
sh
php [every]binlog_collector_worker.php