Mysql8.0.19 download and install-windows version custom installation

 

1. Download MySQL Community Server

Official website download URL: https://dev.mysql.com/downloads/mysql/

Select community edition

 

       It is said that the installation package is 32-bit, but you can know that 32-bit and 64-bit will be installed by looking at the instructions 32&64bit in the previous jump, so just download one of them directly.

      Generally choose offline download version, web download version needs to be connected to the Internet to install.

ps: msi is short for microsoft installer, which is an installation package in Microsoft format. Generally it is the installation software of the program. You can run the installation directly in the windows environment.

The difference between mysql-installer-web-community and mysql-installer-communityl

The official website of mysql provides the installation of two mysql shared versions, one 20M and one 373.4M.

The difference between the two is that the former is installed online, the former must be able to access the Internet when installing, and the latter is installed offline.

It is generally recommended to download the version used for offline installation.

Select download only

 

Two, custom install MySQL

After the download is complete, perform a custom installation (try not to install on the C drive, do not choose the first default download, the default download will be installed on the C drive)

1. Select the installation mode
Developer Default: The developer default type, only the commonly used components are installed;

Server Only: install only the server, Client Only: install only the client;

Full: Install all products, which takes up a lot of disk space and is generally not recommended.

We choose Custom: Custom installation, free to choose the components that need to be installed, choose the installation path, etc.

 

2. Choose the component
MySQL Server you want to install : it is a database service, you need to install this.
MySQL Workbench: A MySQL ER/database modeling tool.
MySQL for Visual Studio: If you use VS programming, and you want to use VS to connect to the database for table management, you need to install this.
MySQL for Excel: is an Excel add-in that allows us to process MySQL data in Microsoft excel.
MySQL Notifier: is an auxiliary tool for MySQL database. It can reside icons in the notification area (system tray) of the system tray to quickly monitor and change the status of the server instance (service). At the same time, it can also be integrated with some graphical management tools (such as MySQL Workbench). Generally not used.
MySQL Shell: is an advanced client and code editor for MySQL Server.
MySQL Router: Generally not used.
MySQL Connector: Some driver packages for connecting to mysql.
MySQL Documentation: Some official mysql documentation.

 

 

3. Click "Advanced Options" to select the installation path

If you don’t click the component on the right, you won’t see it. You may not see it at first.
Select the component to be installed on the right and it will appear in the bottom right.


4. Choose the installation path

Mysql server has two folder paths, the first location is the installation path of MySQL, and the second location is for storing data

It is recommended that the two paths be separated

The other components are just a path

5. Select the path, click next, click Execute, and click next after the status is displayed as complete


6. Click Execute, click next after the status is displayed as complete

Choose the default first, next

mysql default port 3306

next

Set a password, write it down, next

 

Click Execute, after the installation is complete, click Finish

Enter the password, check

 

The installation is complete.

After the installation is complete, it is simple.

 

MySQL commonly used command tools and management tools are saved in the bin directory

The data directory is where MySQL saves data files and log files by default (because there is no data folder yet)

The docs directory is the help documentation for MySQL

The include directory and lib directory are the header files and library files that MySQL depends on

Save directory files and log files in the share directory

 

Three, configure mysql environment variables

Before configuring the environment variable, cmd enters mysql and you will see that mysql cannot be run

 

Right-click "This Computer"-"Properties"-Advanced System Settings-Advanced-Environment Variables

Select the environment variable, click Path, edit-create-fill in the bin directory where mysql is installed

Copy the bin directory where mysql is installed and fill in the new environment variable

D:\MySQL\MySQL Server 8.0\bin

 

After configuring the environment variables, open the cmd command line interface to test whether you can connect to mysql

Entering mysql or mysql -version will prompt that the connection is not allowed and an error will be reported, but at this time the environment variables have been configured successfully, but there is a problem with the access method.

报错:ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: NO)

To use mysql -u root -p, press Enter, and you can access after entering the password. 

Reference: https://blog.csdn.net/qq_27009225/article/details/103956756

 

Fourth, the basic command operation of the database

Connect to the database: Enter mysql -u root -p and press Enter, and then you will be prompted for a password. After entering the password, you will enter the MySQL operation management interface.

View all databases: show databases; (note that there is a semicolon at the end) to view the list of databases in the current MySQL

Select the database to be used: use database name;

View all tables in the selected database: show tables;

Exit: either exit or quit is fine.

 

Five, Navicat installation

 

Six, Navicat connects to the local Mysql server

Reference link: https://blog.csdn.net/qq_40139254/article/details/94402800

 

Custom installation reference link:

https://blog.csdn.net/qq_27009225/article/details/103956756

https://blog.csdn.net/bobo553443/article/details/81383194

Guess you like

Origin blog.csdn.net/kevin1993best/article/details/104830908