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

Navicat for MySql Visual Import CSV File

This article shares the specific code of Navicat ...

HTML+css to create a simple progress bar

1. HTML code Copy code The code is as follows: Ex...

Some lesser-known sorting methods in MySQL

Preface ORDER BY 字段名升序/降序, I believe that everyon...

How to start tomcat using jsvc (run as a normal user)

Introduction to jsvc In production, Tomcat should...

VMware virtualization kvm installation and deployment tutorial summary

Virtualization 1. Environment Centos7.3 Disable s...

MySQL SQL statement performance tuning simple example

MySQL SQL statement performance tuning simple exa...

MySQL database constraints and data table design principles

Table of contents 1. Database constraints 1.1 Int...

Exploring the Linux Kernel: The Secrets of Kconfig

Get a deep understanding of how the Linux configu...

Analysis of a MySQL deadlock scenario example

Preface Recently I encountered a deadlock problem...

Simple writing of MYSQL stored procedures and functions

What is a stored procedure Simply put, it is a se...

Summary of three methods of lazy loading lazyLoad using native JS

Table of contents Preface Method 1: High contrast...

Installation, activation and configuration of ModSecurity under Apache

ModSecurity is a powerful packet filtering tool t...

Solution to the problem that Navicat cannot remotely connect to MySql server

The solution to the problem that Navicat cannot r...

Example of creating a virtual host based on Apache port

apache: create virtual host based on port Take cr...

MySQL InnoDB monitoring (system layer, database layer)

MySQL InnoDB monitoring (system layer, database l...