Installation of MySQL 5.7.31 under windows

installation steps

  1. Double-click the installation package mysql-installer-community-5.7.31.0.msi
  2. Select custom installation "custom" and click next
  • “Developer Default” is the developer default
  • "Server only" Install only as a server
  • "Clientonly" Install only as a client
  • "Full" is a complete installation
  • "Custom" is a custom installation
    Insert image description here
  1. Click on "MySQL Servers", "MySQL Server", "MySQL Servers 5.7", "MySQL Servers 5.7.31-64", and then click the green arrow to select the version we want to install.
    Insert image description here
  2. Modify the installation path
    Insert image description here
  3. Click execute to execute the installation
    Insert image description here
  4. The installation is complete, click next to proceed to the next step.
    Insert image description here
  5. Next, click next
    Insert image description here
  6. Click next, next step
    Insert image description here
  7. Click next, next step
    Insert image description here
  8. set password
    Insert image description here
  9. Click next
    Insert image description here
  10. Click execute to execute the installation
    Insert image description here
  11. Click finish to complete
    Insert image description here
  12. Click next
    Insert image description here
  13. Click finish
    Insert image description here

Check if the installation is successful

  1. Search for mysql in the search bar and click on the first MySQL 5.7 Command Line Client
    Insert image description here
  2. Enter the mysql password we set and press Enter. The following interface appears, indicating that the mysql installation is successful.
    Insert image description here

Configure environment variables

  1. Search for advanced system settings in the search bar and click the first one
    Insert image description here
  2. Click on environment variables
    Insert image description here
  3. Find PATH under system variables and double-click
    Insert image description here
  4. Click New, copy the installation path of mysql above, and then confirm
    Insert image description here
  5. Windows+R, enter cmd, then enter mysql -u root -p, press Enter to enter the password, and the following interface appears, indicating that the environment variable configuration is successful. It
    Insert image description here
    is ok here!

Guess you like

Origin blog.csdn.net/David_house/article/details/131433261