MySQL 5.7.23 installation and configuration method graphic tutorial

MySQL 5.7.23 installation and configuration method graphic tutorial

This article records the installation tutorial of MySQL 5.7.23 for your reference.

1. First, go to the official website to download the MySQL installation package.

Official website address

You can choose the version you want. The default is 8.0. I use 5.7 here.

There are two types of installation packages, one is the msi installation package, and the other is the zip compressed package. I use zip here, so just decompress it.

2. After decompression, configure the environment variables:

Creating Private Variables

Name: MYSQL_HOME Value: D:\mysql-5.7.23-winx64 (mysql decompression address)

Add %MYSQL_HOME%\bin after path

3. Create a my.ini file in the mysql folder and add the following content

[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=D:\mysql-5.7.23-winx64
# Set the storage directory of mysql database data datadir=D:\mysql-5.7.23-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

4. Now you can initialize the database. Open the cmd window as an administrator, switch to the bin directory of the MySQL installation folder, and execute the following command

mysqld --initialize --console

After the execution is complete, a temporary password for the root user will appear.

Copy the code as follows:
2018-09-06T15:10:05.464644Z 5 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: APWCY5ws&hjQ

That is APWCY5ws&hjQ. This will be used in the subsequent login and password change. If you do not change the password, you cannot use this temporary password to log in to database software such as Navicat

5. Then you can install the mysql service and execute the following command

mysqld install

6. If the service is successfully installed, you can start it. Execute the following command

net start mysql

7. After successful startup, you can log in

mysql -uroot -p

Then enter the temporary password you recorded previously and log in successfully.

8. Change password

The previous password modification commands are no longer applicable. You can use the following command to modify

set password = password('password')

Example: set password = password('123456')

The password has been changed successfully and you can log in to MySQL through software such as Navicat.

Reference articles:

How to solve the 1862 (phpmyadmin)/1820 (mysql) error in mySQL

MySQL Installation Tutorial

Wonderful topic sharing:

MySQL different versions installation tutorial

MySQL 5.7 installation tutorials for various versions

MySQL 5.6 installation tutorials for various versions

mysql8.0 installation tutorials for various versions

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Tutorial on installing mysql5.7.23 on Ubuntu 18.04
  • Ubuntu 18.04 installs mysql 5.7.23
  • The latest MySQL 5.7.23 installation and configuration graphic tutorial
  • MySQL 5.7.23 version installation tutorial and configuration method
  • MySQL 5.7.23 decompression version installation tutorial with pictures and text
  • Pitfalls and solutions for upgrading MySQL 5.7.23 in CentOS 7
  • MySQL 5.7.23 winx64 installation and configuration method graphic tutorial under win10
  • MySQL 5.7.23 installation and configuration graphic tutorial
  • mysql 5.7.23 winx64 decompression version installation tutorial
  • Binary installation of mysql 5.7.23 under CentOS7

<<:  Detailed explanation of ssh password-free login configuration method (pictures and commands)

>>:  js to achieve simulated shopping mall case

Recommend

Java uses Apache.POI to export HSSFWorkbook to Excel

Use HSSFWorkbook in Apache.POI to export to Excel...

CocosCreator Universal Framework Design Network

Table of contents Preface Using websocket Constru...

How to change password and set password complexity policy in Ubuntu

1. Change password 1. Modify the password of ordi...

zabbix custom monitoring nginx status implementation process

Table of contents Zabbix custom monitoring nginx ...

Comparison of two implementation methods of Vue drop-down list

Two implementations of Vue drop-down list The fir...

Detailed explanation of nginx optimization in high concurrency scenarios

In daily operation and maintenance work, nginx se...

Example of implementing todo application with Vue

background First of all, I would like to state th...

Detailed explanation of Linux DMA interface knowledge points

1. Two types of DMA mapping 1.1. Consistent DMA m...

MySQL database case sensitivity issue

In MySQL, databases correspond to directories wit...

Solution to the problem "Table mysql.plugin doesn't exist" when deploying MySQL

Today I deployed the free-installation version of...

JavaScript implements asynchronous acquisition of form data

This article example shares the specific code for...

How to write the Nofollow tag and how to use it

The "nofollow" tag was proposed by Goog...

js implements form validation function

This article example shares the specific code of ...

Baidu Input Method opens API, claims it can be ported and used at will

The relevant person in charge of Baidu Input Metho...

Detailed explanation of grep and egrep commands in Linux

rep / egrep Syntax: grep [-cinvABC] 'word'...