Detailed explanation of the installation, configuration, startup and shutdown methods of the Mysql server

Detailed explanation of the installation, configuration, startup and shutdown methods of the Mysql server

1. Download from official website:

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

Find MySQL Community Server and click

insert image description here

Click download, you can choose the download path, I downloaded it in the D drive:

insert image description here

insert image description here

insert image description here

After downloading, you need:
Create a new mysql.ini file 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 to basedir=D:\java web\mysql\mysql-8.0.27-winx64

#Set the storage directory of mysql database data datadir=D:\java web\mysql\mysql-8.0.27-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

(Excerpt from notes)

Create a new data folder and create the same directory as bin: store data

insert image description here

2. After installation: Configure environment variables:

Mine is: D:\java web\mysql\mysql-8.0.27-winx64

insert image description here

insert image description here

In the settings of this computer, open the advanced properties environment variables:
path: Create a new D:\java web\mysql\mysql-8.0.27-winx64\bin:

insert image description here

insert image description here

Configured: Open the cmd command prompt as an administrator:

Type: mysqld install
Check if the installation is successful

3. Start and shut down the server

net start mysql //Start
net stop mysql //Close

You can also:
MySQL has been installed. The server needs to be started manually by entering the cmd command. Open the command window and enter the command to start the server: mysqld --console

You can also: Find mysql in the service and start it manually

insert image description here

insert image description here

4. Log in to MySQL server

mysql -u username -p user password to open the command window and log in as the super administrator:
Enter the command mysql -u root -p and press Enter. You will be prompted to enter a password. The password is empty.

5. Change password:

Enter in mysql
ALTER USER 'root'@'localhost' IDENTIFIED BY 'your-password';
ALTER USER 'root'@'localhost' IDENTIFIED BY '密碼數字輸入或字母';

The password is: your-password

This is the end of this article about the installation, configuration, startup and shutdown methods of the MySQL server. For more relevant MySQL installation and configuration content, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • MySQL multi-instance installation boot auto-start service configuration process
  • MySQL5.7 single instance self-starting service configuration process
  • MySQL configuration master-slave server (one master and multiple slaves)
  • MySQL in Windows net start mysql Start MySQL service error occurs System error solution
  • 5 MySQL GUI tools recommended to help you with database management
  • 19 MySQL optimization methods in database management
  • Detailed introduction to 5 commonly used MySQL database management tools
  • Summary of Common Commands for MySQL Database Management
  • MySQL service and database management

<<:  What is em? Introduction and conversion method of em and px

>>:  Detailed explanation of overflow:auto usage

Recommend

4 solutions to mysql import csv errors

This is to commemorate the 4 pitfalls I stepped o...

Linux Disk Quota Management Graphical Example

Disk quota is the storage limit of a specified di...

Implementation of new issues of CSS3 selectors

Table of contents Basic Selector Extensions Attri...

MySQL table type storage engine selection

Table of contents 1. View the storage engine of t...

How to install FastDFS in Docker

Pull the image docker pull season/fastdfs:1.2 Sta...

MySQL Basics in 1 Hour

Table of contents Getting Started with MySQL MySQ...

What to do if you forget your password in MySQL 5.7.17

1. Add skip-grant-tables to the my.ini file and r...

Keepalived implements Nginx load balancing and high availability sample code

Chapter 1: Introduction to keepalived The purpose...

Simple usage example of MySQL 8.0 recursive query

Preface This article uses the new features of MyS...

HTML Frameset Example Code

This article introduces a framework made by Frame...

Windows 2016 Server Security Settings

Table of contents System update configuration Cha...

Detailed tutorial on Tomcat installation and deployment in Windows 10

Table of contents 1 Java environment configuratio...

What is Software 404 and 404 Error and what is the difference between them

First of all, what is 404 and soft 404? 404: Simpl...