Its pretty simple. I saved the mysql community server in my D:\
drive. Hence this is how i did it.
Goto D:\mysql-5.7.18-winx64\bin
and in the address bar type cmd and press enter, so command prompt will open. Now if you're using it for the first time type as mysql -u root -p
press enter. Then it will ask for password, again press enter. Thats it you are connected to the mysql server.
Before this make sure wamp or xampp any of the local server is running
because i couldn't able to connect to mysql wihthout xampp running.
Happy Coding.