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 in bin directory of mysql.
On windows 7 (should be similar for 8):
go to control panel>system
on left hand side you should see Advanced system settings>double click on that
At bottom of system properties you should see Environment Variables
scroll down in the bottom panel till you see PATH click on it
then click EDIT button underneath>opens new window Edit system variables
at the end add your path to your mysql installation bin folder like C:\mysql\mysql5.6.23\bin; (must separate by ;).