MySQL 8.0.16 compressed version download and installation tutorial under Win10 system

MySQL 8.0.16 compressed version download and installation tutorial under Win10 system

Download from official website: https://www.mysql.com

Go to the MySQL official website and select download

Select Community

Choose MySQL Community Server

Click download

Click the bottom to download without logging in

The download is completed as a compressed package

Install

Unzip the file

Add the bin file directory to the computer system environment configuration path

Create a new my.ini configuration file

[mysql]
default-character-set = utf8
[mysqld]
#Port port = 3306
#mysql installation directory basedir = E:/mysql-8.0.16-winx64
#mysql data storage directory datadir = E:/mysql-8.0.16-winx64/data
#Maximum number of connections allowed max_connections = 1024
#The number of allowed connection failures max_connect_errors=10
#The server uses the character set character-set-server = utf8 by default
#Default storage engine default-storage-engine = INNODB

Open cmd as administrator

Enter the mysql->bin directory

Here, the default password is empty to initialize the database

Enter the command: mysqld --initialize-insecure

Install MySQL: mysqld install

If mysql has been installed before, the following error may occur

The previous mysql service needs to be removed

Type: mysqld -remove MySQL

Install again

Start MySQL: net start mysql

Enter MySQL: mysql -u root -p

Because the password is initialized to empty, enter the password and press Enter to enter mysql

Encountering a problem

Time zone error when project connects to database

java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.

This error is usually caused by using version 8.0 of the database and version 8.0 of the mysql-connector-java driver. You need to add the time zone parameter in the URL to connect to the database.

serverTimezone=GMT%2B8 GMT%2B8 represents the East 8th zone

Original url: jdbc:mysql://localhost:3306/test

Add parameter: jdbc:mysql://localhost:3306/test?serverTimezone=GMT%2B8

Or directly change the database time zone settings:

show variables like '%time_zone%' ;

set global time_zone='+8:00';

Summarize

The above is the illustrated tutorial for downloading and installing the compressed version of MySQL8.0.16 under Win10 system 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 8.0.22.0 download, installation and configuration method graphic tutorial
  • MySQL 8.0.22 download, installation and configuration method graphic tutorial
  • mysql8.0.20 download and installation and problems encountered (illustration and text)
  • MySQL 8.0.13 download and installation tutorial with pictures and text
  • mysql 8.0.12 winx64 download and installation tutorial
  • The latest version of MySQL 8.0.22 download and installation super detailed tutorial (Windows 64 bit)

<<:  Vue two fields joint verification to achieve the password modification function

>>:  Linux file system operation implementation

Recommend

Automatically build and deploy using Docker+Jenkins

This article introduces Docker+Jenkins automatic ...

Detailed explanation of the solution to image deformation under flex layout

Flex layout is a commonly used layout method nowa...

How to add Vite support to old Vue projects

1. Introduction I have taken over a project of th...

Innodb system table space maintenance method

Environmental Description: There is a running MyS...

Share 13 excellent web wireframe design and production tools

When you start working on a project, it’s importa...

Some pitfalls of JavaScript deep copy

Preface When I went to an interview at a company ...

A brief analysis of kubernetes controllers and labels

Table of contents 01 Common controllers in k8s RC...

Design Reference Beautiful and Original Blog Design

All blogs listed below are original and uniquely ...

Teach you to implement a simple promise step by step

Table of contents Step 1: Build the framework Ste...

Implementation of Nginx load balancing/SSL configuration

What is load balancing? When a domain name points...

Open the Windows server port (take port 8080 as an example)

What is a Port? The ports we usually refer to are...

MySQL sorting using index scan

Table of contents Install sakila Index Scan Sort ...

How to load third-party component libraries on demand in Vue3

Preface Take Element Plus as an example to config...