optimize the installation of multiply mysql instance