Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

Setting up mysql replication (Master->Slave one direction)

$
0
0

I am struggling with the setup of a one way replication for a single mysql table.

What I have done so far:

Master:

  1. Added this into my my.cnf:

    server-id=5668439 log-bin=mysql-bin log-error=mysql-bin.err binlog_do_db=CB_Forum

  2. Saved this and restartet the mysql server. Then I logged into phpmyadmin and I have added a replication user, using this phpmyadmin feature: http://puu.sh/j1Awl/ed2a9358b8.png

  3. I made sure that the Slave is connected properly: enter image description here

I wonder whether this line which is part of the default my.cnf may be a problem?

max_binlog_size         = 100M

Slave: I have added the master configuration using the phpmyadmin feature. THis is what the status says: http://puu.sh/j1AU7/33f68c23ff.png

Unfortunately the replication doesn't take place. I have tried the manual synchronization (I want it automatically though), by clicking Go here:

enter image description here

This time it copied 20 tables successfully but it has stopped then. So why doesn't it synchronize automatically and how can I set it up that it only synchronizes one single table permanently to my slave?


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>