I'm fairly new to databases so I hope this isn't a silly question!
Is it possible to set up master/slave replication on the SAME server?
I understand there are not any advantages to this in terms of hardware utilisation/recovery purposes, but a set up like this would help test a piece of software I am developing.
Best Answer
It's possible, why not. You have to run two instances of MySQL. One will be a master, second - a slave.
Check this for detailed instructions https://dev.mysql.com/doc/refman/5.5/en/multiple-servers.html
UPDATE:
Usually I use Vagrant for this. Here's a piece of code to setup a master + slave.
Vagrantfile:
bootstrap-master.sh
bootstrap-slave.sh