To use MySQL server on the command line, you must have the correct system path. This is usually done automatically.
How to check if the MySQL server is a Environment Variable:
Windows + R and type cmdmysqlIf the MySQL server is not a Environment Variable you will get an error like : Not recognised command
It is a must to have MySQL server already installed, if you don't have MySQL server installed follow this tutorial
mysql.exe. For example: C:\Program Files\MySQL\MySQL Server 5.6\binEdit the system environment variablesEnvironment Variables and locate User variables for $USERNAMEPath variable and click EditNew button and insert the path to mysql.exe you located earlierC:\Program Files\MySQL\MySQL Server 5.6\binNow everything is set-up and you can acces mysql from the command line.
To check if the set-up was done correctly press Windows + R and type cmd, when you will type mysql in the console you will see all the options.