Detailed tutorial on replacing mysql8.0.17 in windows10

Detailed tutorial on replacing mysql8.0.17 in windows10

This article shares the specific steps of replacing mysql8.0.17 in windows10 for your reference. The specific contents are as follows

Download the Windows version of MySQL

After decompression, create the my.ini file to initialize the mysql and data folders to store data

my.ini content

[mysqld]
# Set port 3306 port=3306
# Set the installation directory of mysql basedir=D:\javaDevlepTool\mysql\mysql-windows-service\mysql-8.0.17-winx64
# Set the storage directory of mysql database data datadir=D:\javaDevlepTool\mysql\mysql-windows-service\mysql-8.0.17-winx64\data
# 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 = 10
# The default character set used by the server is UTF8
character-set-server=utf8
# The default storage engine that will be used when creating a new table default-storage-engine=INNODB
[mysql]
# Set the default character set of the mysql client to default-character-set=utf8
[client]
# Set the default port used by the mysql client to connect to the server port = 3306
default-character-set=utf8

Then configure the environment variables to point to this directory

Open the cmd window as an administrator and jump to the path E:\mysql-8.0.11-winx64\bin (just hold down the shift key and right-click in this directory to open the PowerShell window here)

Initialization command: .\mysqld --initialize --user=mysql --console will initialize mysql and generate a temporary password. Remember it.

Next, enter mysqld -install to add the service

net start mysql start service

Log in with temporary password

Change password: ALTER USER root@localhost IDENTIFIED BY '123456'; Change password to: 123456

At this time, the sqlyog connection error is reported: Error 2058 plugin caching sha2_password could not be loaded

ALTER USER'root'@'localhost' IDENTIFIED BY 'root' PASSWORD EXPIRE NEVER; #Modify encryption rules ALTER USER'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456'; #Update the user's password FLUSH PRIVILEGES; #Refresh permissions

Connect again, connection successful

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:
  • Installation method of mysql-8.0.17-winx64 under windows 10
  • MySQL 8.0.17 installation graphic tutorial
  • MySQL 8.0.17 installation and configuration graphic tutorial
  • Detailed steps to upgrade mysql8.0.11 to mysql8.0.17 under win2008
  • MySQL 8.0.17 installation and configuration method graphic tutorial
  • MySQL 8.0.17 winx64 (with navicat) manual configuration version installation tutorial diagram
  • mysql-8.0.17-winx64 deployment method
  • MySQL 8.0.17 installation and usage tutorial diagram
  • Solve the problems encountered during the installation of Mysql 8.0.17 winx64 version
  • MySQL 8.0.17 decompression version installation and configuration method graphic tutorial

<<:  Detailed tutorial on installing Ubuntu 19.10 on Raspberry Pi 4

>>:  javascript implements web version of pinball game

Recommend

The easiest way to make a program run automatically at startup in Linux

I collected a lot of them, but all ended in failu...

How to install a virtual machine with Windows services on Mac

1. Download the virtual machine Official download...

MySQL 5.7.23 decompression version installation tutorial with pictures and text

It is too troublesome to find the installation tu...

MySQL 8.0.11 installation summary tutorial diagram

Installation environment: CAT /etc/os-release Vie...

Enterprise-level installation tutorial using LAMP source code

Table of contents LAMP architecture 1.Lamp Introd...

vue-pdf realizes online file preview

This article example shares the specific code of ...

Graphic tutorial on installing tomcat8 on centos7.X Linux system

1. Create the tomcat installation path mkdir /usr...

How to install pip package in Linux

1. Download the pip installation package accordin...

Docker installation and configuration command code examples

Docker installation Install dependency packages s...

Several ways to easily traverse object properties in JS

Table of contents 1. Self-enumerable properties 2...

Example of creating table statements for user Scott in MySQL version of Oracle

Overview: Oracle scott user has four tables, whic...