Hypnosis is used to assist someone to enter into a deeper trance than the mind automatically goes to. It's not possible to hypnotize someone into doing something they don't want to do.
You do not need hypnosis to make someone like you. It's too much stress. It's not a good idea to trick anyone into liking you.
You can attract the person you desire without hypnosis. Work on yourself, grow yourself confidence and self esteem, improve your mental and emotional life. People that are like minds will be attracted to you.
I do not believe you would be able to successfully hypnotize someone into liking you. First, because I personally don’t believe hypnosis actually works and secondly, because you would need to be really skilled at hypnosis which is not an easy thing to do. Even people who do believe hypnotism works know and agree with the fact that it is very hard to hypnotize someone who is skeptical of hypnotism or who doesn’t want to be hypnotized.
So, if the person you want to hypnotize is someone like this, it will certainly not ever work. I do believe that hypnosis can be a helpful relaxation technique, but a hypnotized person is never really asleep or unconscious and is never under someone else’s control.