I have created a mail id for my website as info@domainname.com. I want to get all the mails to info in to my personal mail id in gmail directly. I heard i can achieve this functionality by changing the mx records. Can anybody help me to change it properly. Thank you

I might have misunderstood what you're trying to do, but it sounds like you meerly wish to forward all emails from info@domainname.com to your.account@gmail.com.

Is that correct?

If so, you want to look at setting up mail forwarding for info@domainname.com to your Gmail account. This can usually be done via Plesk, or whatever server control panel you may be using.