PHP code example of nine / binlog2sql

1. Go to this page and download the library: Download nine/binlog2sql 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/ */

    

nine / binlog2sql example snippets


const __DATABASE__ = 'test';
const __TABLE__ = 'student';
const __USER__ = 'root';
const __PASSWORD__ = 123456;
const __HOST__ = '127.0.0.1';
const __PORT__ = 3309;

$binlog = new \Binlog2sql\Binlog();
$binlog->start();