The striker was making his first appearance of the season for Real.
Afterwards, he remarked: "I am very happy, we played a great game, we knew it was going to be very difficult, we had to win because we came from two draws in the league.
"I found out about it today. I work every week for this type of opportunity, it's a treasure, I'm going to work for more."
Mayoral added: " I am happy to be here and I thank them for the confidence they have given to me. It is a pride to be learning with these players."