mysql8.0 forgotten password modification and net command service name invalid problem

mysql8.0 forgotten password modification and net command service name invalid problem

Enter net start mysql in cmd and the prompt is: The service name is invalid

Please go to the bin directory of MySQL and open a command line window in the bin directory, or set the system environment variables and enter mysqld --install in the command line window. Press Enter and the message " Service successfully installed will be displayed.

It indicates that the MySQL service has been installed successfully. Enter net start mysql in the command line window and it can start normally.


mysql8.0 forgotten password modification:

The following code is feasible

You were asked to set a password when installing MySQL earlier, but that password doesn’t seem to be used. What you should enter here is the random initial password it automatically generates, and this initial random password is placed in a .err file in the MySQL installation directory. There seems to be only one .err file in the entire folder. Just search it in the folder.


ALTER USER "root"@"localhost" IDENTIFIED BY "your new password"; 

Summarize

The above is what I introduced to you about mysql8.0 forgotten password modification and invalid net command service name. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please reprint it and please indicate the source. Thank you.

You may also be interested in:
  • Detailed explanation of the idea of ​​installing mysql8.0.11 and changing the root password and connecting navicat for mysql
  • How to correctly modify the ROOT password in MySql8.0 and above versions
  • Solve the problem of changing the password when logging in for the first time after installing MySQL 8.0
  • Summary of how to modify the root password in MySQL 5.7 and MySQL 8.0
  • MySQL 8.0.19 winx64 installation tutorial and change the initial password under Windows 10
  • MySQL 8.0.12 installation configuration method and password change
  • MySQL 8.0.15 installation and configuration graphic tutorial and password change under Linux
  • How to modify the root user password in mysql 8.0.16 winx64 and Linux
  • Problems with changing password and connecting to Navicat when installing and using MySQL 8.0.16 under Windows 7
  • The correct way to change the password in MySQL 8.0

<<:  Tutorial analysis of quick installation of mysql5.7 based on centos7

>>:  vue-pdf realizes online file preview

Recommend

Docker builds python Flask+ nginx+uwsgi container

Install Nginx First pull the centos image docker ...

Do you know how to use mock in vue project?

Table of contents first step: The second step is ...

Detailed explanation of web page loading progress bar (recommended)

(When a web page is loading, sometimes there is t...

Several ways to introduce pictures in react projects

The img tag introduces the image Because react ac...

Example of how to optimize MySQL insert performance

MySQL Performance Optimization MySQL performance ...

Implementation of code optimization for Vue2.x project performance optimization

Table of contents 1 Use of v-if and v-show 2. Dif...

A complete guide to Linux environment variable configuration

Linux environment variable configuration When cus...

How to configure the Runner container in Docker

1. Create a runner container mk@mk-pc:~/Desktop$ ...

Common pitfalls of using React Hooks

React Hooks is a new feature introduced in React ...

Solve the problem of blocking positioning DDL in MySQL 5.7

In the previous article "MySQL table structu...

Detailed tutorial on installing PHP and Nginx on Centos7

As the application of centos on the server side b...

Detailed explanation of Linux commands and file search

1. Perform file name search which (search for ...