Telling a crying child to "stop crying" only makes him/her cry more. Yelling it out of frustration or anger is even worse. (I know. I've tried.)
This works: gentleness, compassion and understanding. Hugs work. Prayer works. Acknowledging the pain works. Listening works. Fresh air works.
I'll remember this the next time I need to comfort a crying child.