Below is what I have
userid score 1 8 2 5 3 4 4 4 5 10 6 3
Try this one -
SELECT *, @r:=IF(@score IS NULL OR @score <> score, @r+1, @r) position, @score:=score FROM fschema.mytab3, (SELECT @r:=0, @score:=NULL) t ORDER BY score DESC, userid