Fix handling of root password on non-masters

Previously the root password was not set on slaves,
which meant there was also no /root/.my.conf file,
which prevented slaves from using the custom types
for managing database resources.