Example of electrolysis aqueous solution - copper sulphate solution
The copper ion( positive) and the H+ ion are both attracted to the cathode. To find out which ion is reduced ( reduction) at the cathode there’s a rule:
Hydrogen is produced at the cathode if the metal is more reactive than hydrogen.
if no halide ions are present, then the hydroxide ions are discharged and oxygen is formed at the anode. if both ions are present then a halogen is formed at the anode. in this case there are only sulphate ions and hydroxide ions so oxygen is formed at the anode