Wait for linked MySQL server to open TCP port before database operation....

... Solves issues with fig due to slow MySQL startup. Retries every 5 seconds until MySQL server exposes its TCP port.