MySql 8.0.16-win64 Installation Tutorial

MySql 8.0.16-win64 Installation Tutorial

1. Unzip the downloaded file as shown below

.

2. Add the decompression directory to the environment variable

3. Create a new configuration file my.ini in the decompressed directory

[mysqld]
port=3306
basedir=D:\\DataBase\\MySql\\mysql-8.0.16-winx64 # Replace this with your own decompression directory datadir=D:\\DataBase\\MySql\\mysql-8.0.16-winx64\\Data
max_connections=200
max_connect_errors=10
character-set-server=utf8
default-storage-engine=INNODB
default_authentication_plugin=mysql_native_password
[mysql]
default-character-set=utf8
[client]
port=3306
default-character-set=utf8

4. Run Cmd (remember to run it as an administrator) to unzip the MySql directory

5. Enter mysqld --initialize --console and record the initial password

6. Enter the command mysqld install to install the service

7. Enter the command mysql -u root -p and then enter the password to log in (the password here is the string pointed to by the arrow in step 5)

8. If the message "Can't connect to MySQL server on 'localhost' (10061)" is displayed, it means the service is not started.

9. Enter the command net start mysql to start the MySQL service

10. Enter the command mysql -u root -p again and enter the password to log in. If the login is successful, the following page will appear

11. Enter the command alter user root@localhost identified by 'new password'; to change the password

Summarize

The above is the MySql 8.0.16-win64 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.20 win64 installation and configuration method
  • Detailed process of building mysql5.7.29 on centos7 of linux
  • MySQL 5.7.29 + Win64 decompression version installation tutorial with pictures and text

<<:  How to install a virtual machine with Windows services on Mac

>>:  Node+socket realizes simple chat room function

Recommend

Detailed explanation of Mybatis special character processing

Preface: Mybatis special character processing, pr...

In-depth analysis of Linux NFS mechanism through cases

Continuing from the previous article, we will cre...

Tutorial on deploying springboot package in linux environment using docker

Because springboot has a built-in tomcat server, ...

Free tool to verify that HTML, CSS and RSS feeds are correct

One trick for dealing with this type of error is t...

Mybatis statistics of the execution time of each SQL statement

background I am often asked about database transa...

Discussion on more reasonable creation rules for MySQL string indexes

Preface Regarding the use of MySQL indexes, we ha...

Detailed explanation of data sharing between Vue components

Table of contents 1. In project development, the ...

Semantics, writing, and best practices of link A

The semantics, writing style, and best practices ...

JavaScript determines whether the browser is IE

As a front-end developer, I can’t avoid IE’s pitf...

Detailed tutorial on installing Ubuntu 19.10 on Raspberry Pi 4

Because some dependencies of opencv could not be ...

Detailed process of upgrading glibc dynamic library in centos 6.9

glibc is the libc library released by gnu, that i...

Sqoop export map100% reduce0% stuck in various reasons and solutions

I call this kind of bug a typical "Hamlet&qu...

Native js implementation of magnifying glass component

This article example shares the specific code for...