Adding support for mysqld_multi

Support for a single instance should still be intact
as well. This needs tested and reviewed carefully!