Welcome To YT. Please take your Yorkie baby to the vet ASAP! He is in so much pain, and an infection like that could spread to other areas in the body.
There might be other health issues going on with him too, so it is vital to get him in. A vet is the only one who knows what medication to give.