Here come the questions:
- Is it possible to setup two MySQL daemons on the same machine, and keep one as master (server-id=1) and one slave (server-id=2)?
- If so, would I need to specify the path of each when accessing the daemons using the mysql command?
- Just to check - this shouldn't cause any problems with port access or locks, since the slave is only there to listen to the master, correct?
- The actual master/slave configuration would have to be set in $BASEDIR/my.cnf, since /etc/my.cnf is common to both installs, correct?
The server is currently in use, so setting this up with as little reconfiguration as possible on the master would be much appreciated.