You can type it in the MySQL console, but i recommend you to type it in Navicat or some other MySQL Client.
This is how you get to the MySQL console:
Then you can type or copy and paste(with the right mouse button if you use PuTTY) the querys into the console. Don't forget to end every query with a semicolon! ( semicolon -> ; )