I have to admit that I am not really good in database administration, still learning. Would be glad if someone could point me a good direction.
This is in my MASTER server my.ini
.
log-bin=mysql-bin.log
server-id=1
sync-binlog=1
binlog-do-db=main_live
And this is in my SLAVE server my.ini
.
relay-log=mysql-relay-bin.log
log-bin=mysql-bin.log
binlog-do-db=main_live
replicate-do-db=main_live
I expect all tables in main_live
to be replicated.
But it seems to replicate tables in main_office
as well.
And this happen:
Error 'Table 'main_office.followed_task_user' doesn't exist' on query. Default database: 'main_live'. Query: 'insert into `main_office`.`followed_task_user` (`task_id`, `user_id`) values (3, 212379)'
I suspect it has something to do with this default database but I am not sure how to solve this. Would be glad if someone can point a direction.
Thanks!