Is it possible to change the MySQL server-id during a SQL session?
server_id is a dynamic variable, so you can change it while the server is running. To change the global variable, do:

SET GLOBAL server_id=21


More info at http://dev.mysql.com/doc/refman/5.5/en/replication-options.html#option_mysqld_server-id