MySQL 8.0.18 Installation Configuration Optimization Tutorial

MySQL 8.0.18 Installation Configuration Optimization Tutorial

Mysql installation, configuration, and optimization are for your reference. The specific contents are as follows

Mysql download

First, log in to the official website to download the MySQL installation package. The official website address is https://dev.mysql.com/. Scroll down to the end and select MySQL Community Server in downloads.

Select the version you want to download

MySQL Installation

1. Open the downloaded MySQL installation file mysql-5.5.43-win32.rar, double-click to decompress it, and run "setup.exe".

2. Select the installation type. There are three options: Typical, Complete, and Custom. Select Custom and press Next to continue.

3. Click "Browse" and manually specify the installation directory.

4. Fill in the installation directory. Mine is "C:\Program Files (x86)\MySQL\MySQL Server 5.5". Press "OK" to continue. After confirming this path, continue to click Server data files. You also need to modify this path. This file saves the database code written in MySQL. Confirm the previous settings. If there is any error, press "Back" to return and redo it. Press "Install" to start the installation.

insert image description here

5. Installation in progress, please wait until the following interface appears to complete the installation of MYSQL

MySQL Configuration

Select the configuration method , "Detailed Configuration" or "Standard Configuration". We choose "Detailed Configuration" to familiarize ourselves with the configuration process.

Select the server type , "Developer Machine (development and testing type, MySQL occupies very few resources)", "Server Machine (server type, MySQL occupies more resources)", "Dedicated MySQL Server Machine (dedicated database server, MySQL occupies all available resources)"

Select the general purpose of the MySQL database , "Multifunctional Database (general multifunctional, good)", "Transactional Database Only (server type, focused on transaction processing, general)", "Non-Transactional Database Only (non-transactional, simpler, mainly used for some monitoring and counting, support for MyISAM data types is limited to non-transactional), and press "Next" to continue.

Select the number of concurrent connections for the website, the number of simultaneous connections , "Decision Support (DSS) / OLAP (about 20)", "Online Transaction Processing (OLTP) (about 500)", "Manual Setting (manual setting, enter a number yourself)".

Whether to enable TCP/IP connection and set the port. If not, you can only access the MySQL database on your own machine. On this page, you can also choose "Enable Strict Mode" so that MySQL will not allow minor syntax errors. If you are a novice, it is recommended that you cancel the standard mode to reduce trouble. But after you are familiar with MySQL, try to use the standard mode, because it can reduce the possibility of harmful data entering the database. Press "Next" to continue.

That is to set the MySQL default database language encoding (important), generally select UTF-8, and press "Next" to continue.

Choose whether to install MySQL as a Windows service , you can also specify the Service Name (service identifier name), whether to add the MySQL bin directory to the Windows PATH (after adding it, you can directly use the files under bin without specifying the directory name, such as connecting, "mysql.exe -uusername -ppassword;" is enough, without specifying the full address of mysql.exe, which is very convenient). I have checked all of them here, and the Service Name remains unchanged. Press "Next" to continue.

You are asked whether to change the default root user (super administrator) password . "Enable root access from remote machines (whether to allow root users to log in on other machines. If you want security, don't check it. If you want convenience, check it)". Finally, you don’t need to check “Create An Anonymous Account (Create a new anonymous user. Anonymous users can connect to the database but cannot operate data, including querying)”. After the settings are completed, press “Next” to continue.

Confirm that the settings are correct and press "Execute" to make the settings effective, completing the installation and configuration of MYSQL.

MySQL Optimization

  • Select the most appropriate field attribute
  • Use joins instead of subqueries
  • Use union instead of manually created temporary tables

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:
  • MySQL 8.0.18 installation and configuration method graphic tutorial
  • MySQL 8.0.18 installation tutorial under Windows (illustration)
  • mysql 8.0.18.zip installation and configuration method graphic tutorial (windows 64 bit)
  • Detailed explanation of how to connect Java to Mysql version 8.0.18
  • MySQL 8.0.18 installation and configuration method graphic tutorial (linux)
  • MySQL 8.0.18 installation and configuration method graphic tutorial under win10 (windows version)
  • MySQL 8.0.18 stable version released! Hash Join is here as expected
  • MySQL 8.0.18 installation and configuration method graphic tutorial under MacOS
  • Tutorial diagram of installing mysql8.0.18 under linux (Centos7)
  • MySQL 8.0.18 installation and configuration graphic tutorial

<<:  Lambda expression principles and examples

>>:  How to use bind to set up DNS server

Recommend

How to install kibana tokenizer inside docker container

step: 1. Create a new docker-compose.yml file in ...

Detailed graphic explanation of sqlmap injection

Table of contents 1. We found that this website m...

Docker compose custom network to achieve fixed container IP address

Due to the default bridge network, the IP address...

Nginx rtmp module compilation arm version problem

Table of contents 1. Preparation: 2. Source code ...

docker cp copy files and enter the container

Enter the running container # Enter the container...

How to deploy Vue project using Docker image + nginx

1. Packaging Vue project Enter the following name...

Detailed explanation of how to use element-plus in Vue3

Table of contents 1. Installation 2. Import in ma...

VUE introduces the implementation of using G2 charts

Table of contents About G2 Chart use Complete cod...

MySQL 8.0.18 installation and configuration method graphic tutorial

This article records the installation and configu...

Solve the splicing problem of deleting conditions in myBatis

I just learned mybatis today and did some simple ...

Optimizing the slow query of MySQL aggregate statistics data

Written in front When we operate the database in ...

5 Ways to Send Emails in Linux Command Line (Recommended)

When you need to create an email in a shell scrip...

Negative distance (empathy) - iterative process of mutual influence

Negative distance refers to empathy. Preface (rai...

Linux Jenkins configuration salve node implementation process diagram

Preface: Jenkins' Master-Slave distributed ar...