Any series of molecular signals generated as a consequence of binding to a toll-like 2 receptor where the MyD88 adaptor molecule mediates transduction of the signal. Toll-like 2 receptors are pattern recognition receptors that bind microbial pattern motifs to initiate an innate immune response.