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

Learn Hyperlink A Tag

ask: I have styled the hyperlink using CSS, but i...

WeChat Mini Program to Implement Electronic Signature

This article shares the specific code for impleme...

Implementing a random roll caller based on JavaScript

This article shares the specific code of JavaScri...

Interpretation of 17 advertising effectiveness measures

1. 85% of ads go unread <br />Interpretatio...

JavaScript to achieve full screen page scrolling effect

After I finished reading JavaScript DOM, I had a ...

Solution to the problem of repeated triggering of functions in Vue project watch

Table of contents Problem description: Solution 1...

Implementation of MySQL select in subquery optimization

The following demonstration is based on MySQL ver...

Mysql: The user specified as a definer ('xxx@'%') does not exist solution

During the project optimization today, MySQL had ...

Supplementary article on front-end performance optimization

Preface I looked at the previously published arti...

Vue Element front-end application development to obtain back-end data

Table of contents Overview 1. Acquisition and pro...

MySQL 8.0.24 version installation and configuration method graphic tutorial

This article records the installation and configu...

How to configure two-way certificate verification on nginx proxy server

Generate a certificate chain Use the script to ge...

...

Apache Calcite code for dialect conversion

definition Calcite can unify Sql by parsing Sql i...

Detailed tutorial on how to automatically install CentOS7.6 using PXE

1. Demand The base has 300 new servers, and needs...