MYSQL study notes 1-window installation mysql5.7

1. Download the installation package

       Official website download:MySQL :: Download MySQL Installer (Archived Versions)

        The first one is online installation, do not download this one; we download the second one

2. Install mysql

        ​ ​ 1) Select custom installation

         ​​​​Double-click the downloaded msi file

“Developer Default” is the developer default

"Server only" Install only as a server

"Client only" Install only as a client

"Full" is a complete installation

"Custom" is a custom installation

       

        2) Select the corresponding 64-bit server

 

        Click on "MySQL Servers", "MySQL Servers", "MySQL Servers 5.7", "MySQL Servers 5.7.31-64", and then click the green arrow to transplant the selected version to the right selection box; here Select 64-bit  

        First select "MySQL Server 5.7.31", then click the blue "Advanced Options" below to customize the directory. It is recommended not to install it on the C drive.

        Click Next. If there is no problem with the path, continue to the next step.

        When this green checkmark appears, it means the installation is successful.

        3) Select the installation type

        You can choose "Development Computer" if you want to do personal study and research. I chose "Development Computer"; the port does not need to be changed.

Development Computer is suitable for personal development and learning

Server Computer is mainly used for things like FTP, email, web servers, etc.

Dedicated Computer is used only as a MySQL server

        ​ ​ 4) Set password

        ​​ ​​Set the root password of mysql here. I created a test user for remote connection.

         You can click Continue by default later

        finish

3. Connect to mysql

        Search for mysql on the start interface and click on the first MySQL 5.7 Command Line Client

        Enter the root password. This client can only be logged in by the root user.

         sign in suceesfully

4. Configure environment variables

C:\Users\stsw>mysql
'mysql' is not recognized as an internal or external command, operable program or batch file.

        Find the installation directory of mysql, configure the system environment variables, and write the bin directory path to PATH

        This way you can use the mysql command to log in to the database with other users

 

Guess you like

Origin blog.csdn.net/qq_63693805/article/details/133860770