I downloaded MySQL 5.6.25 for Windowsx64 and I tried to run the command
mysql -uroot -p
to start using MySQL but it says
'mysql' is not recognized as an internal or external command, operable program or batch file.
Do I need to move MySQL to some other place? It is currently on the desktop.
EDIT: I downloaded Xampp but now when I run that same command I get this:
You need to place mysql in your environment variable
PATH
in order to run it from the command prompt, if you are not inbin
directory of mysql.On windows 7 (should be similar for 8):
control panel
>system
Advanced system settings
>double click on thatsystem properties
you should seeEnvironment Variables
PATH
click on itEDIT
button underneath>opens new windowEdit system variables
C:\mysql\mysql5.6.23\bin;
(must separate by;
).