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

Commonly used English fonts for web page creation

Arial Arial is a sans-serif TrueType font distribu...

Mysql join table and id auto-increment example analysis

How to write join If you use left join, is the ta...

CSS to achieve Cyberpunk 2077 style visual effects in a few steps

background Before starting the article, let’s bri...

MySQL installation tutorial under Centos7

MySQL installation tutorial, for your reference, ...

TypeScript Enumeration Type

Table of contents 1. Overview 2. Digital Enumerat...

React and Redux array processing explanation

This article will introduce some commonly used ar...

CocosCreator implements skill cooling effect

CocosCreator realizes skill CD effect There are s...

HTML basics - CSS style sheets, style attributes, format and layout details

1. position : fixed Locked position (relative to ...

Sample code for making desktop applications with vue + Electron

1.vue packaging Here we use the vue native packag...