Installation method of mysql-8.0.17-winx64 under windows 10

Installation method of mysql-8.0.17-winx64 under windows 10

1. Download from the official website and unzip

https://dev.mysql.com/downloads/mysql/

After downloading, it is a zip compressed file: mysql-5.7.26-winx64.zip, then decompress this file;

After decompression, I put the decompressed files in D:\mysql-5.7.26-winx64;

2. Set environment variables

Configure MYSQL_HOME to the MySQL decompression path: D:\mysql-5.7.26-winx64, and set %MYSQL_HOME%\bin,若是win7系統,則需要這樣填寫:;%MYSQL_HOME%\bin如下圖所示:

3. In the MySQL decompression path, create a new my.ini file to configure the initialization parameters and copy the following content to the my.ini file:

[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 to basedir=D:\mysql-8.0.17-winx64
# Set the storage directory of mysql database data datadir=D:\mysql-8.0.17-winx64\data
# Maximum number of connections allowed max_connections=200
# 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

4. Initialize the database

Open the cmd command window as an administrator and enter the mysqld --initialize command to initialize the mysql data directory. After initialization, a data folder will be generated in the decompressed directory. In this folder, there is a file ending with .err. When opened, a randomly generated password will appear. As shown in the following figure:

5. Installation service

Execute the following command in cmd

# Registering Services

mysqld --install

#To delete mysql, execute the command mysqld --remove mysql, as shown in the following figure:

# Start the service net start mysql, as shown below:

#Stop the service net stop mysql, as shown below:

Log in to the MySQL database and use the command: mysql -u root -p. The initial password is the password corresponding to the screenshot above: o/wU!>G8lgzr, as shown in the following figure:

6. Change your password

ALTER USER USER() IDENTIFIED BY '輸入新密碼';

Summarize

The above is the installation method of mysql-8.0.17-winx64 under Windows 10 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.20 installation tutorial and detailed tutorial on installation issues
  • MySQL 8.0.19 winx64 installation tutorial and change the initial password under Windows 10
  • Tutorial on installing mysql-8.0.18-winx64 under Windows (with pictures and text)
  • Solve the problems encountered when installing mysql-8.0.11-winx64 in Windows environment
  • mysql8.0 windows x64 zip package installation and configuration tutorial
  • MySQL 8.0.20 Installation Tutorial with Pictures and Text (Windows 64-bit)

<<:  Solution to the network failure when installing workstation in a virtual machine in ESXI

>>:  JavaScript data type conversion example (converting other types to strings, numeric types, and Boolean types)

Recommend

Tutorial diagram of installing centos7.3 on vmware virtual machine

VMware Preparation CentOS preparation, here is Ce...

React's reconciliation algorithm Diffing algorithm strategy detailed explanation

Table of contents Algorithmic Strategy Single-nod...

Eight common SQL usage examples in MySQL

Preface MySQL continued to maintain its strong gr...

How to install Postgres 12 + pgadmin in local Docker (support Apple M1)

Table of contents introduce Support Intel CPU Sup...

Example of converting webpack images to base64

Download url-loader yarn add -D url-loader module...

Mysql optimization techniques for querying dates based on time

For example, to query yesterday's newly regis...

How to automatically start RabbitMq software when centos starts

1. Create a new rabbitmq in the /etc/init.d direc...

Deeply understand how nginx achieves high performance and scalability

The overall architecture of NGINX is characterize...

Tutorial on installing MySQL 5.7.28 on CentOS 6.2 (mysql notes)

1. Environmental Preparation 1.MySQL installation...

How to use wangEditor in vue and how to get focus by echoing data

Rich text editors are often used when doing backg...

Shell script to monitor MySQL master-slave status

Share a Shell script under Linux to monitor the m...

Detailed usage of Linux text search command find

The find command is mainly used to find directori...

Beginners learn some HTML tags (3)

Related articles: Beginners learn some HTML tags ...