About MySQL 8.0.13 zip package installation method

About MySQL 8.0.13 zip package installation method

MySQL 8.0.13 has a data folder by default. This folder must be deleted, otherwise there will be a log file prompt error when installing the service:

Failed to find valid data directory.

Data Dictionary initialization failed.

Also, create a new my.ini file in the mysql folder with the following content:

default-character-set and character-set-server cannot be written as utf-8, just write them as UTF8Mb4

If the previous setup failed but the MYSQL service was created,

Open cmd as an administrator. (In fact, open cmd directly first, then open the task manager, find the location of cmd and run it as an administrator.)

Type services.msc and scroll down to see if there is a MYSQL service set up.

If there is, delete it by typing sc delete MYSQL (default name, you may have set another name before, just enter the other name) in the cmd run by the administrator

Of course, you can also enter mysqld -remove MYSQL in the mysql bin directory.

If you confirm that there is no mysql service

Type mysqld --initialize-insecure

wait

Then enter mysqld --install

Then enter net start mysql

The MYSQL service was started successfully.

(This is my MySQL zip installation memo. If it can help other experts, it will be great.)

[mysql]
# Set the default character set of the mysql client to default-character-set=UTF8Mb4
[mysqld]
# Set port 3306 port = 3306
# Set the installation directory of mysql basedir = D:\\mysql  
# Set the storage directory of mysql database data datadir = D:\\mysql\\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=UTF8Mb4
# The default storage engine that will be used when creating a new table default-storage-engine=INNODB

Summarize

The above is the editor's introduction to the installation method of MySQL 8.0.13zip package. 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!

You may also be interested in:
  • MySQL 8.0.13 installation and configuration method graphic tutorial
  • MySQL 8.0.13 download and installation tutorial with pictures and text
  • MySQL 8.0.13 decompression version installation and configuration method graphic tutorial
  • Solve the problem when setting the date to 0000-00-00 00:00:00 in MySQL 8.0.13
  • Problems and solutions when installing MySQL8.0.13 on Win10 system
  • MySQL 8.0.13 installation and configuration method graphic tutorial under win10
  • MYSQL8.0.13 free installation version configuration tutorial example detailed explanation
  • MySQL 8.0.13 free installation version configuration tutorial under Windows environment
  • MySQL 8.0.13 installation and configuration method graphic tutorial under Windows 64 bit
  • MySQL 8.0.13 installation and configuration graphic tutorial

<<:  Example steps for using AntV X6 with Vue.js

>>:  Detailed explanation of Nginx configuration required for front-end

Recommend

Alibaba Cloud Centos7.3 installation mysql5.7.18 rpm installation tutorial

Uninstall MariaDB CentOS7 installs MariaDB instea...

Vue simulates the shopping cart settlement function

This article example shares the specific code of ...

React's transition from Class to Hooks

Table of contents ReactHooks Preface WhyHooks? Fo...

Mysql5.6.36 script compilation, installation and initialization tutorial

Overview This article is a script for automatical...

Detailed Tutorial on Installing VirtualBox 6.0 on CentOS 8 / RHEL 8

VirtualBox is a free and open source virtualizati...

Implementing custom scroll bar with native js

This article example shares the specific code of ...

Summary of Several Methods for Implementing Vertical Centering with CSS

In the front-end layout process, it is relatively...

Example of how to enable Brotli compression algorithm for Nginx

Brotli is a new data format that can provide a co...

JavaScript to achieve text expansion and collapse effect

The implementation of expanding and collapsing li...

Detailed explanation of how to install MariaDB 10.2.4 on CentOS7

CentOS 6 and earlier versions provide MySQL serve...

Installation and use of Ubuntu 18.04 Server version (picture and text)

1 System Installation Steps OS Version:1804 Image...