MYSQL8.0.13 free installation version configuration tutorial example detailed explanation

MYSQL8.0.13 free installation version configuration tutorial example detailed explanation

1. Download, I take 8.0 as an example

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

2. Unzip to a directory, for example: D:/mysql/mysql-8.0.13-winx64

3. Configure environment variables

1. Create a new variable: MYSQL_HOME

Variable value: D:/mysql/mysql-8.0.13-winx64

2. Modify the path variable

Add a record: %MYSQL_HOME%/bin

4. Create the my.ini file in the D:/mysql/mysql-8.0.13-winx64 directory

[mysqld]
# Set the installation directory of mysql, that is, the location where you unzip the installation package basedir = D:/mysql/mysql-8.0.13-winx64
# Set the storage directory of mysql database data datadir = D:/mysql/mysql-8.0.13-winx64/data
# Set the port number port = 3306
# Maximum number of connections allowed max_connections = 200
# The number of connection failures allowed. This is to prevent someone from trying to attack the database system from this host max_connect_errors = 20

5. Register MySQL as a Windows system service

1. Use the administrator's privileges to open CMD (note the administrator's privileges), and enter the mysql decompression directory in CMD

2. Run the service installation command

mysqld install MySQL --defaults-file="%MYSQL_HOME%\my.ini"

After the installation is successful, it will prompt

Tip: If you want to remove the service, use the command: mysqld -remove

6. Enter the bin directory of mysql and enter the command to initialize the data folder (very important)

mysqld --initialize-insecure --user=mysql

7. Start the service

net start mysql

8. Modify the root account password

When the installation is just completed, the default password of the root account is empty. At this time, you can change the password to the specified password. For example: 123456

Open the database: mysql -uroot -p (When prompted to enter password, just press Enter. The default password is blank)

use mysql;
  ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';
  FLUSH PRIVILEGES;
  exit

Summarize

The above is a detailed example of the MYSQL8.0.13 free installation version configuration tutorial 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!

You may also be interested in:
  • MySQL 8.0.13 installation and configuration method graphic tutorial
  • MySQL 8.0.13 download and installation tutorial with pictures and text
  • MySQL 8.0.13 decompression version installation and configuration method graphic tutorial
  • Solve the problem when setting the date to 0000-00-00 00:00:00 in MySQL 8.0.13
  • Problems and solutions when installing MySQL8.0.13 on Win10 system
  • About MySQL 8.0.13 zip package installation method
  • MySQL 8.0.13 installation and configuration method graphic tutorial under win10
  • MySQL 8.0.13 free installation version configuration tutorial under Windows environment
  • MySQL 8.0.13 installation and configuration method graphic tutorial under Windows 64 bit
  • MySQL 8.0.13 installation and configuration graphic tutorial

<<:  Use of js optional chaining operator

>>:  Summary of Node.js service Docker container application practice

Recommend

Detailed explanation of Apache website service configuration based on Linux

As an open source software, Apache is one of the ...

Example of deploying MySQL on Docker

Table of contents 1 What is container cloud? 2 In...

Complete steps to build a squid proxy server in linux

Preface This article mainly introduces the releva...

mysql batch delete large amounts of data

mysql batch delete large amounts of data Assume t...

js to realize payment countdown and return to the home page

Payment countdown to return to the home page case...

Summarize the commonly used nth-child selectors

Preface In front-end programming, we often use th...

How to enable MySQL remote connection in Linux server

Preface Learn MySQL to reorganize previous non-MK...

Detailed analysis of several situations in which MySQL indexes fail

1. Leading fuzzy query cannot use index (like ...

HTML background color gradient achieved through CSS

Effect screenshots: Implementation code: Copy code...

Use of LRU algorithm in Vue built-in component keep-alive

Table of contents The use of Vue's keep-alive...

Vue ElementUI implements asynchronous loading tree

This article example shares the specific code of ...

Installation and configuration method of vue-route routing management

introduce Vue Router is the official routing mana...

How to prohibit vsftpd users from logging in through ssh

Preface vsftp is an easy-to-use and secure ftp se...

Tutorial on building a zookeeper server on Windows

Installation & Configuration The official web...

Use Firebug tool to debug the page on iPad

How to debug a page on iPad? When using iOS 5, you...