Welcome to HCM,
It seems that you are having Impacted wax in your right ear.
Many a time infection takes place giving rise to pain and ear discharge
This wax can not be removed by yourself.
One has to put some wax dissolving ear drops like Waxolve ear drops for few days and once wax becomes loose then it should be removed.
For better cleaning consult your doctor.
Ok and bye.