mysql-8.0.15-winx64 uses the zip package to install and the service is shut down immediately after starting

mysql-8.0.15-winx64 uses the zip package to install and the service is shut down immediately after starting

The MySQL version used in this example is mysql-8.0.15-winx64

1. Download the zip package

Official website address: https://dev.mysql.com/downloads/mysql/

2. Installation

After decompression, copy the decompressed files to the installation directory you prefer, for example, I like to install it in the C drive, as shown in the figure:

The files circled in red in the figure need to be manually added. The text content is: (can be changed according to actual needs)

[mysql]
# Set the default character set of the mysql client to default-character-set=utf8
 
[mysqld]
# Set port 3306 port = 3306
# Set the installation directory of mysql basedir=C:\allSoftCjy\mysql-8.0.15-winx64
# Set the storage directory of mysql database data datadir=C:\allSoftCjy\mysql-8.0.15-winx64\data
# Maximum number of connections allowed max_connections=20
# The default character set used by the server is the 8-bit latin1 character set character-set-server=utf8
# The default storage engine that will be used when creating a new table default-storage-engine=INNODB
#To copy the master-slave database data# Open the binary log log-bin=mysql-bin
# Set server-id 
server-id=1

3. Configure environment variables

4. Install MySQL

(1) Run cmd as an administrator

(2) Execute the command in the bin directory of the MySQL installation directory:

After the execution is complete, the initial default password of the root user will be printed, for example:

4. Uninstall MySQL

5. The Mysql service in Windows system is shut down immediately after startup

(1) First check the log and select the file ending with err

(2) Comment out the configuration in the box.

Summarize

The above is the introduction of mysql-8.0.15-winx64 using zip package for installation and the problem of shutting down immediately after the service is started. I hope it will be helpful to everyone. 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 turns off password strength verification
  • Perfect solution to the problem of MySQL shutting down immediately after startup (caused by ibdata1 file corruption)
  • How to disable foreign key constraint checking in MySQL child tables
  • How to open and close the MySQL database using mysqli object-oriented method in PHP
  • Tutorial on safely shutting down the MySQL service
  • How to turn off MySQL log to protect disk space under lnmp
  • Using batch processing to start and shut down mysql under Windows
  • How to open, close, and view function functions of MySQL database
  • Detailed explanation of MySQL shutdown process and methods to safely shut down MySQL
  • In-depth analysis of the definition, use and closing of Mysql cursors
  • Starting and shutting down the MySQL server
  • How to safely shut down a MySQL instance

<<:  React concurrent function experience (front-end concurrent mode)

>>:  Detailed explanation of Tomcat directory structure

Recommend

MySQL Workbench download and use tutorial detailed explanation

1. Download MySQL Workbench Workbench is a graphi...

MySQL complete collapse: detailed explanation of query filter conditions

Overview In actual business scenario applications...

MySQL 8.0.18 stable version released! Hash Join is here as expected

MySQL 8.0.18 stable version (GA) was officially r...

docker-maven-plugin packages the image and uploads it to a private warehouse

Table of contents 1. Introduction to docker-maven...

How to view the network routing table in Ubuntu

What are Routing and Routing Table in Linux? The ...

How to authorize all the contents of a folder to a certain user in Linux?

【Problem Analysis】 We can use the chown command. ...

Analysis of the pros and cons of fixed, fluid, and flexible web page layouts

There is a question that has troubled web designe...

How to configure the pdflatex environment in docker

Technical Background Latex is an indispensable to...

How to deploy a simple c/c++ program using docker

1. First, create a hello-world.cpp file The progr...

SQL implementation of LeetCode (183. Customers who have never placed an order)

[LeetCode] 183.Customers Who Never Order Suppose ...

HTML Tutorial: Unordered List

<br />Original text: http://andymao.com/andy...

Importance of background color declaration when writing styles

As the title says, otherwise when the page is revi...

Building FastDFS file system in Docker (multi-image tutorial)

Table of contents About FastDFS 1. Search for ima...

Understanding render in Vue scaffolding

In the vue scaffolding, we can see that in the ne...