Log mysql connection failures better.

Change-Id: Ic040939fc881aa62be8bee31f39a7624c8bc5e7d