How to connect to binlog files and connection string pointing to slave

63 views
Skip to first unread message

Arindam Nayak

unread,
Jun 29, 2018, 7:47:19 AM6/29/18
to Python MySQL replication
Hi

Is there a way to give binlog directory as input to "BinLogStreamReader" constructor and connection string will point to slave db , so that from slave's information_schema it will read the definition and from log files it will parse data. I have tried with log_file="/Users/arindamn/Documents/spigit/my-bin.index",
log_pos=0,

But it fails giving error pymysql.err.InternalError: (1236, u'Binary log is not open')
Reply all
Reply to author
Forward
0 new messages