Detailed tutorial on installing MYSQL under WINDOWS

Detailed tutorial on installing MYSQL under WINDOWS

1. Download the installation package

-Choose the appropriate version according to your computer system: https://dev.mysql.com/downloads/mysql/

2. Configure environment variables

2.1 Unzip the downloaded compressed package

2.2 Environment variables

How to enter Win 10 computer

3. Generate data file

In the directory where you unzipped the files, eg: F:\Program Files\mysql-8.0.17-winx64\bin, run cmd as an administrator

Execute mysqld --initialize-insecure --user=mysql to generate the data directory under the eg directory

4. Install MySQL

Execute the command: mysqld -install

5. Start the mysql service

net start mysql

6. Log in and change password

When you log in for the first time, there is no password, just enter, mysql -u root -p

View user command: select user,authentication_stringfrom mysql.user;

Because the encryption rule in versions before MySQL 8 is mysql_native_password, and after MySQL 8, the encryption rule is caching_sha2_password,

So if you want Navicat to connect to MySQL, you must modify the MySQL user login password encryption rule to restore it to mysql_native_password.

ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; #Modify encryption rules ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; #Update the user's password FLUSH PRIVILEGES; #Refresh permissions ALTER USER 'root'@'localhost' IDENTIFIED BY 'new password'; Modify the password in this way

7. Use navicat to connect to mysql

Summarize

The above is a detailed tutorial on how to install MYSQL under WINDOWS. I hope it will be helpful to you. If you have any questions, please leave me a message and I 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 8.0.16 installation and configuration tutorial under Windows 10
  • MySQL 8.0.16 installation and configuration method graphic tutorial under Windows
  • Detailed tutorial on installing different (two) versions of MySQL database on Windows
  • Solve the problems encountered when installing mysql-8.0.11-winx64 in Windows environment
  • Tutorial diagram of installing MySQL service through MySQL Installer under Windows
  • MySQL installation tutorial under Windows with pictures and text
  • MySQL 5.7.20 installation and configuration method graphic tutorial under Windows
  • MySQL 8.0.12 installation and configuration method graphic tutorial (Windows version)

<<:  Vue.js implements simple timer function

>>:  Quickly solve the problem of slow startup after Tomcat reconfiguration

Recommend

Detailed explanation of DOM DIFF algorithm in react application

Table of contents Preface What is VirtualDOM? Rea...

Example analysis of the page splitting principle of MySQL clustered index

This article uses an example to illustrate the pa...

Websocket+Vuex implements a real-time chat software

Table of contents Preface 1. The effect is as sho...

Native JavaScript to implement random roll call table

This article example shares the specific code of ...

HTML hyperlink style (four different states) setting example

Copy code The code is as follows: <style type=...

Introduction to reactive function toRef function ref function in Vue3

Table of contents Reactive Function usage: toRef ...

Summary of MySQL composite indexes

Table of contents 1. Background 2. Understanding ...

MySQL installation diagram summary

MySQL 5.5 installation and configuration method g...

Memcached method for building cache server

Preface Many web applications store data in a rel...

Vue implements automatic jump to login page when token expires

The project was tested these days, and the tester...

Detailed tutorial on building a private Git server on Linux

1. Server setup The remote repository is actually...

JavaScript operation element examples

For more information about operating elements, pl...

How to solve the problem that MySQL cannot start because it cannot create PID

Problem Description The MySQL startup error messa...

Detailed explanation of JavaScript BOM composition and common events

Table of contents 1. BOM 2. Composition of BOM 2....