MySQL5.7.27-winx64 version win10 download and installation tutorial diagram

MySQL5.7.27-winx64 version win10 download and installation tutorial diagram

MySQL 5.7 installation

We are learning MySQL database at school. The teacher asked us to install it ourselves. I thought it could be done quickly, but it took me a whole night. It was really annoying. I recorded how I installed it and the solutions to some problems I encountered.

1. Download : https://dev.mysql.com/downloads/mysql/

insert image description here

Download and unzip to your favorite location, the path is in English (for example, I unzip directly to E:\mysql)

2. Edit a my.ini text

[mysqld]
port = 3306
#mysql-5.7.27-winx64 path basedir=E:\mysql
#mysql-5.7.27-winx64\data path datadir=E:\mysql\data 
max_connections=200
character-set-server=utf8
default-storage-engine=INNODB
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
[mysql]
default-character-set=utf8

Put it in the unzipped path

insert image description here

(If you cannot write my.ini configuration, you can use notepad++ to write it. Download address: https://notepad-plus-plus.org/downloads/v7.7.1/

3. Add new environment variables

 Variable Name: MYSQL_HOME
       Variable value: Mysql decompression directory, for example, E:\mysql
       Append path
       %MYSQL_HOME%\bin;

Right click on this computer and click Properties, and then do the following:

insert image description hereinsert image description here

Append path

insert image description here

Add %MYSQL_HOME%\bin; and then confirm and save.

insert image description here

4. Open the command prompt as an administrator. Search for cmd in the lower left corner of the status bar in win10, then right-click and run as an administrator to perform the following operations.

insert image description here

Note: If you have installed MySQL before but failed, completely delete the MySQL service before proceeding. Ignore this for the first time and go directly to (1). I spent an entire night here. Method: * 1. Start Task Manager->Services->Open Services->MySQL->Right click to stop running

insert image description here

* 2. Search for "regedit" in the lower left corner of the status bar and run it, then open the following in turn and find MySQL

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\MySQL

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\Eventlog\Application\MySQL

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\MySQL

insert image description here

Right click and delete MySQL one by one. *3. Open the cmd command window with administrator privileges, then enter the command: sc delete mysql and press Enter.

(1) Initialization: mysqld -initialize-insecure

(2) Installation: mysqld install prompts Install/Remove of the Service Denied, indicating that the command prompt was not entered as an administrator. Re-enter the command prompt as an administrator. If Service successfully installed is displayed, the installation is successful. If the message "Service successfully exists!" appears, it means that it has been installed before. If there is any problem with the next step 4, go back to the previous notes .

(3) Start the service net start mysql. If the service cannot be started, enter: mysqld --initialize-insecure . It may take a long time, so please wait for a while.

(4) Log in to mysql -u root -p Enter Password will appear: Now just press Enter

insert image description here

Input: use mysql to enter the database and input: update user set authentication_string=password(“xxxxxx”) where user=“root”; xxxxxx is the new password you set. Press Enter and Query ok will appear, indicating that it is done. When you log in again, you must enter the password you set. (5) Enter select now() and press Enter to display your computer’s time.

insert image description here

(6) Enter quit to exit

(7) Enter net stop mysql to stop the service.

Summarize

The above is the MySQL5.7.27-winx64 version win10 download and installation tutorial introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • MySQL 5.7.30 Installation and Upgrade Issues Detailed Tutorial
  • Detailed steps to install MySQL 5.7 via YUM on CentOS7
  • Detailed graphic and text tutorial on downloading, installing and configuring mysql-5.7.28 under Windows
  • Tutorial on installing MySQL 5.7.28 on CentOS 6.2 (mysql notes)
  • MySQL 5.7.27 installation and configuration method graphic tutorial
  • MySQL 5.7 installation and configuration tutorial under CentOS7 64 bit
  • MySQL 5.7.33 installation process detailed illustration

<<:  WeChat applet custom tabBar step record

>>:  VMware Workstation 15 Pro Installation Guide (for Beginners)

Recommend

Detailed explanation of Linux server status and performance related commands

Server Status Analysis View Linux server CPU deta...

Understand CSS3 FlexBox elastic layout in 10 minutes

Basic Introduction Features Flexbox is a CSS disp...

js to make a simple calculator

This article shares the specific code of making a...

Collection of 25 fonts used in famous website logos

This article collects the fonts used in the logos...

How to Fix File System Errors in Linux Using ‘fsck’

Preface The file system is responsible for organi...

MySQL 8.x msi version installation tutorial with pictures and text

1. Download MySQL Official website download addre...

Three networking methods and principles of VMware virtual machines (summary)

1. Brigde——Bridge: VMnet0 is used by default 1. P...

Practical TypeScript tips you may not know

Table of contents Preface Function Overloading Ma...

Zabbix3.4 method to monitor mongodb database status

Mongodb has a db.serverStatus() command, which ca...

Analysis of rel attribute in HTML

.y { background: url(//img.jbzj.com/images/o_y.pn...

Implementation of multi-site configuration of Nginx on Mac M1

Note: nginx installed via brew Website root direc...

The principle and application of ES6 deconstruction assignment

Table of contents Array destructuring assignment ...

Example of how to enable Brotli compression algorithm for Nginx

Brotli is a new data format that can provide a co...