The story
From the Greek legend of King Midas, related in chapter XI of Ovid’s Metamorphoses (8 C.E.), whom Dionysus (the god of, among other things, wine and winemaking) gave the power to turn things to gold by touching them.
Etymology from Wiktionary, CC BY-SA 4.0.