2

I have a mysql db in my box. Can I replicate it to another db on the same box?

ie, the same box would be both master and slave(s).

Are there other ways of achieving this? (I'm thinking pointers/references, because it's in the same db system)

Jonny
  • 153

2 Answers2

2

Yes, you can. Just run each instance on a different port.

  • Thanks, I just installed mysql again using a different port. Works - no troubles so far... – Jonny Jan 18 '10 at 08:21
1

Just need different data dirs/sockets, etc. so different my.cnf's.

Xorlev
  • 1,845