Music helps not the toothache.
Jacula Prudentum (published posthumously, 1651). This is probably an older proverb.

Music helps not the toothache.