Win10 installation of MySQL5.7.18winX64 failed to start the server and no error message

Win10 installation of MySQL5.7.18winX64 failed to start the server and no error message

System environment: Win10 64-bit

MySQL version: mysql-5.7.18-winX64

The deployment steps are as described online:

1: Modify the environment variable path and increase the value D:\Program Files\MySQL\MySQL Server 5.7\bin

2: Copy the my.ini file from the old version of MySQL installation directory (the Internet says it is my-default.in. My my.ini file is renamed after copying this file. It should be OK). Paste it into the 5.7 installation directory D:\Program Files\MySQL\MySQL Server 5.7, and modify the following two sentences:

basedir = D:/Program Files/MySQL/MySQL Server 5.7
datadir = D:/Program Files/MySQL/MySQL Server 5.7/data

Create an empty data folder in the installation directory D:\Program Files\MySQL\MySQL Server 5.7;

3: The administrator (annoying win10 always requires this permission) runs cmd (find it in system32 of windows), enters: mysqld -install, and it shows that the installation is successful; then enter: net start mysql, and it prompts that the service startup failed.

At this point: Go to the data folder and see 5 files. Open the file with the suffix .err, which prompts: Table 'mysql.plugin' doesn't exist

The solution to this problem is:

1. Copy my.ini to the \bin folder;

2. Go to the \bin directory in cmd, and then enter mysqld --initialize --user=mysql --console to execute this command to generate the database. Note that there is a temporary password, so write it down;

3. Start the service net start mysql;

4. Enter the mysql command: mysql -uroot -p, enter the password just now;

5. Enter set password = password('root') to change the root login password; //Here root is the new password

You may also be interested in:
  • mysql5.7.19 winx64 installation and configuration method graphic tutorial (win10)
  • How to install MySQL server community version MySQL 5.7.22 winx64 in win10

<<:  How to elegantly implement the mobile login and registration module in vue3

>>:  Methods and steps for Etcd distributed deployment based on Docker

Recommend

JavaScript Basics Operators

Table of contents 1. Operators Summarize 1. Opera...

Docker installation and deployment of Net Core implementation process analysis

1. Docker installation and settings #Install Cent...

Building .NET Core 2.0 + Nginx + Supervisor environment under Centos7 system

1. Introduction to Linux .NET Core Microsoft has ...

What is the function of !-- -- in HTML page style?

Mainly for low version browsers <!-- --> is ...

Detailed explanation of the middleman mode of Angular components

Table of contents 1. Middleman Model 2. Examples ...

Which scenarios in JavaScript cannot use arrow functions

Table of contents 1. Define object methods 2. Def...

Solution to Ubuntu 20.04 Firefox cannot play videos (missing flash plug-in)

1. Flash plug-in package download address: https:...

Getting Started Tutorial on Using TS (TypeScript) in Vue Project

Table of contents 1. Introducing Typescript 2. Co...

How to reset your Linux password if lost

1. The startup menu is to move the cursor to the ...

Detailed explanation of fetch network request encapsulation example

export default ({ url, method = 'GET', da...

The most common declaration merge in TS (interface merge)

Table of contents 1. Merge interface 1.1 Non-func...

React antd realizes dynamic increase and decrease of form

I encountered a pitfall when writing dynamic form...

MySql multi-condition query statement with OR keyword

The previous article introduced the MySql multi-c...

Basic knowledge of MySQL database

Table of contents 1. Understanding Databases 1.1 ...