mysql8.0.20 download and installation and problems encountered (illustration and text)

mysql8.0.20 download and installation and problems encountered (illustration and text)

1. Search mysql in the browser to download and install

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

2. Download with or without logging in

3. The downloaded file is a compressed package, which can be decompressed directly without installation.

4. Create a new my.ini file with the following content

Regarding sql_mode, the error below is because the group by field must be completely displayed in the query column, so if you remove this mode, there will be no error.

Caused by: java.sql.SQLSyntaxErrorException: Expression #13 of SELECT list is not in GROUP BY clause and contains nonaggregated column ...........which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

5. Then install and configure the mysql directory into the system environment variable path. It is optional, but if it is configured, you can directly type mysql in the dos interface.

6. Use the administrator command mode on the computer to enter the mysql/bin directory and initialize the installation of mysql

After entering, if you need to switch drive letters, just d: to switch, then cd mysql directory/bin to enter the bin directory

Then enter:

1) mysqld --initialize --console, this command will initialize the my.ini file, build the data directory and other settings. Select the password below with the mouse and press ctrl+c to copy it.

Note here that if the my.ini file is modified later and it does not take effect after restarting MySQL, you need to delete the data directory and delete the MySQL service, use the command sc delete service name, and then re-execute the command.

2) Enter: mysqld --install

3) Input: net start mysql If mysql has been installed locally, you can modify the service name here, such as mysql8. However, in my test, when mysql5.5 already exists locally, I installed mysql8 and the password read was still the login password of mysql5.5. Then I deleted mysql5.5 and installed mysql8 normally.

6. Login and change password

Win+R, enter the command line mode, enter: mysql -u root -p , if the path is not added before, you need to enter the mysql bin directory here

Enter the password copied in step 5 and enter mysql

Execute: alter user root@localhost identified by 'root'; Press enter to successfully change the password to root. Do not lose the semicolon after the SQL statement.

Summarize

This is the end of this article about mysql8.0.20 download and installation and the problems encountered. For more relevant mysql8.0.20 download and installation content, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • MySQL 8.0.12 installation and environment variable configuration tutorial under win10
  • MySQL 5.6.23 Installation and Configuration Environment Variables Tutorial
  • How to configure environment variables after installing mysql5.7 database
  • The latest version of MySQL 8.0.22 download and installation super detailed tutorial (Windows 64 bit)
  • MySQL 8.0.22.0 download, installation and configuration method graphic tutorial
  • MySQL 8.0.22 download, installation and configuration method graphic tutorial
  • Detailed tutorial for downloading, installing and configuring MySQL 5.7.27
  • MySQL 5.6.37 (zip) download installation configuration graphic tutorial
  • MySQL 5.7.18 Green Edition Download and Installation Tutorial
  • MySQL 8.0.15 download and installation detailed tutorial is a must for novices!
  • MySQL 8.0.13 download and installation tutorial with pictures and text
  • Summary of common problems in downloading and installing MySQL 5.7 on Win7 64-bit
  • Detailed graphic instructions for downloading and installing the unzipped version of MySQL 5.7.18 and starting the MySQL service
  • MySQL 5.7 Service Download and Installation Graphical Tutorial (Classic Edition)
  • MySQL 5.7.14 download, installation, configuration and use detailed tutorial
  • MySQL msi version download and installation detailed graphic tutorial for beginners

<<:  How to start the spring-boot project using the built-in linux system in win10

>>:  Binary Search Tree Algorithm Tutorial for JavaScript Beginners

Recommend

HTML5+CSS3 coding standards

The Golden Rule No matter how many people are wor...

Ubuntu basic settings: installation and use of openssh-server

Record the installation and use of openssh-server...

How to deploy hbase using docker

Standalone hbase, let’s talk about it first. Inst...

Example of using store in vue3 to record scroll position

Table of contents Overall Effect Listen for conta...

React High-Order Component HOC Usage Summary

One sentence to introduce HOC What is a higher-or...

7 skills that great graphic designers need to master

1》Be good at web design 2》Know how to design web p...

Detailed explanation of MySQL master-slave replication and read-write separation

Table of contents Preface 1. Overview 2. Read-wri...

Understanding the Lazy Loading Attribute Pattern in JavaScript

Traditionally, developers create properties in Ja...

JavaScript immediate execution function usage analysis

We know that in general, a function must be calle...

Installation steps of Ubuntu 20.04 double pinyin input method

1. Set up Chinese input method 2. Set the double ...

Solve the problem of Tomcat10 Catalina log garbled characters

Running environment, Idea2020 version, Tomcat10, ...

CSS realizes the scene analysis of semi-transparent border and multiple border

Scenario 1: To achieve a semi-transparent border:...

About using Alibaba's iconfont vector icon in Vue

There are many import methods on the Internet, an...

JavaScript custom plug-in to implement tab switching function

This article shares the specific code of JavaScri...