MySQL 8.0.24 installation and configuration method graphic tutorial

MySQL 8.0.24 installation and configuration method graphic tutorial

This article shares the installation tutorial of MySQL 8.0.24 for your reference. The specific content is as follows

Download address: Official website

1. Unzip the folder

2. Configure environment variables and add the bin directory under mysql to PATH;

3. Create a new my.ini configuration file in the mysql directory

insert image description here

4. Modify the configuration file

[mysqld]
#Set port 3306 port=3306
#Set the installation directory of mysql basedir=D:\MySQL\mysql-8.0.24\
#Set the storage directory of mysql database data datadir=D:\MySQL\mysql-8.0.24\data\
#Skip password authentication skip-grant-tables 

5. Start CMD in administrator mode , switch the path to the bin directory under mysql, and then enter mysqld -install (install mysql service)

6. Enter mysqld --initialize-insecure --user=mysql to initialize the data file

The data directory will be automatically generated, and there will be some initial databases

7. Enter net start mysql to start the MySQL service and change the password

insert image description here

8. Use the command mysql -u root -p to enter the MySQL management interface (the password can be empty)

This is the first time I get an error. Just restart the service. Note that the password is empty.

9. Change the root password after entering the interface

alter user 'root'@'localhost' identified with mysql_native_password by '123456';

10. Finally, enter flush privileges; to refresh permissions.

11. Finally, go back and comment out the last sentence in the my.ini file.

Restart mysql and it will work normally

net stop mysql
net start mysql

If the connection is successful, it is OK.

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.24 version installation and configuration method graphic tutorial
  • MySQL 8.0.23 free installation version configuration detailed tutorial
  • MySQL 8.0.23 installation and configuration method graphic tutorial under win10
  • MySQL 8.0.22 compressed package complete installation and configuration tutorial diagram (tested and effective)
  • Detailed tutorial on installing and configuring MySql5.7 on Ubuntu 20.04
  • 10 performance configuration items that need to be adjusted after installing MySQL
  • MySQL 8.0.22 zip compressed package version (free installation) download, installation and configuration steps detailed
  • Super detailed MySQL8.0.22 installation and configuration tutorial
  • MySQL 8.0.22 winx64 installation and configuration graphic tutorial
  • MySQL 8.0.22.0 download, installation and configuration method graphic tutorial
  • CenOS6.7 mysql 8.0.22 installation and configuration method graphic tutorial
  • MySQL 8.0.22 installation and configuration method graphic tutorial under Windows 10
  • MySQL 5.5.27 winx64 installation and configuration method graphic tutorial
  • MySQL 8.0.22 winx64 installation and configuration method graphic tutorial
  • MySQL 8.0.22 download, installation and configuration method graphic tutorial
  • MySQL 8.0.22 installation and configuration graphic tutorial
  • MySQL 8.0.22 installation and configuration method graphic tutorial
  • Detailed tutorial on installation and configuration of compressed version of MySQL database

<<:  I have compiled a few cool design sites that I think are good.

>>:  Steps to package and release the Vue project

Recommend

MySQL 5.7 installation and configuration method graphic tutorial

This tutorial shares the installation and configu...

How to modify the time zone and time in Ubuntu system

On a Linux computer, there are two times, one is ...

How to batch generate MySQL non-duplicate mobile phone number table example code

Preface In many MySQL test scenarios, some test d...

Basic operation tutorial of files and permissions in centos

Preface Before we begin, we should briefly unders...

Docker installation steps for Redmine

Download the image (optional step, if omitted, it...

Why is the MySQL auto-increment primary key not continuous?

Table of contents 1. Introduction 2. Self-increme...

7 skills that web designers must have

Web design is both a science and an art. Web desi...

Steps to transfer files and folders between two Linux servers

Today I was dealing with the issue of migrating a...

Use CSS to achieve circular wave effect

I often see some circular wave graphics on mobile...

Solution to MySQL Chinese garbled characters problem

1. The Chinese garbled characters appear in MySQL...

JavaScript implements H5 gold coin function (example code)

Today I made a Spring Festival gold coin red enve...

Implementation example of Vue+Element+Springboot image upload

Recently, I happened to be in touch with the vue+...