Win10
In short, the previous steps are: 1 download and install; 2 Configure environment variables after installation; 3: Login Database
1: Installation
MySQL has installed version and direct decompression can be used, it is said that the great God is installed directly decompression, but in view of their own small white, the entire installation version. As for the specific steps of self-reference Niang bar.
2: Configure environment variables (refer to the following three images)
The environment variable is configured so that MySQL can be manipulated directly in the DOS window
Right click on this computer select Properties (right here in file management) and in the popup page select Advanced system settings, and in the popup page select environment variable, edit the popup page under System variables, and select New in the popup page, Copy the contents of the MySQL installation file into ()
3 login MySQL
A: First look at MySQL boot no
Win+r: Enter Services.msc, click Enter, Pop up, double click into MySQL57 (different version, estimated difference) Click to start
Below we can see in the Task Manager Mysql.exe whether or not to start, the following is OK
3: Login Database
A: Open the DOS window
Win+r, then enter CMD carriage return. The Open Black window is the disk operating system (DOS)
B: Login Database
Enter the Mysql-u root-p in the Black window to enter, will prompt for a password, enter the password you set when installing MySQL (password with the * number shown), will be displayed as, the login success
C:mysql-u Root-p's understanding
-U (user abbreviation) the root behind the user name, the installation is not set by itself is the system default root
-p (password Password) Point Enter, you can input the password
1 installation of MySQL