[mysql] pre-check connectivity before creating DB