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

Solve the problem of the container showing Exited (0) after docker run

I made a Dockerfile for openresty on centos7 and ...

Let's deeply understand the event object in js

We know that the commonly used events in JS are: ...

js basic syntax and maven project configuration tutorial case

Table of contents 1. js statement Second, js arra...

The webpage cannot be opened because the div element lacks a closing tag

At first I thought it was a speed issue, so I late...

Implementation of local migration of docker images

I've been learning Docker recently, and I oft...

HTML 5 Preview

<br />Original: http://www.alistapart.com/ar...

Detailed introduction and usage examples of map tag parameters

Map tags must appear in pairs, i.e. <map> .....

A brief analysis of MySQL locks and transactions

MySQL itself was developed based on the file syst...

Detailed explanation of Vue custom instructions and their use

Table of contents 1. What is a directive? Some co...

Best Practices Guide for Storing Dates in MySQL

Table of contents Preface Do not use strings to s...

Vue.js manages the encapsulation of background table components

Table of contents Problem Analysis Why encapsulat...

Common errors and solutions for connecting Navicat to virtual machine MySQL

Question 1 solve Start the service: service mysql...

Vue Basics Introduction: Vuex Installation and Use

Table of contents 1. What is vuex 2. Installation...

How to use CSS to achieve two columns fixed in the middle and adaptive

1. Use absolute positioning and margin The princi...