What to do if you forget your password in MySQL 5.7.17

What to do if you forget your password in MySQL 5.7.17

1. Add skip-grant-tables to the my.ini file and restart the MySQL server

2. Enter cmd as an administrator, or use a database management tool. I use navicat to connect to the database.

Fill in the connection name casually, leave the password blank, and click OK

3. Double-click the MySQL database, click the menu bar query, and create a new query

4. Execute update user set authentication_string = password('root') where user = 'root'

5. Comment out or delete skip-grant-tables in the my.ini file

6. Restart the Mysql server. The password of user root will become root.

You can refer to the following MySQL topics provided by this site:

Mysql installation tutorials in various systems

Mysql Root Password Operation Skills

MySql Database Getting Started Tutorial

Summary of database operation knowledge in MySQL

The above is what I introduced to you about Mysql 5.7.17 forgotten password. 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!

You may also be interested in:
  • mysql 5.7.18 winx64 password change
  • How to change the root password of Mysql5.7.10 on MAC
  • Mysql5.7.14 installation and configuration method operation graphic tutorial (password problem solution)
  • MySQL 5.7.16 changes password prompt ERROR 1054 (42S22): Unknown column ''''password'''' in ''''field list'''' reason
  • Graphic tutorial on how to modify the initial password of Mysql5.7.11 under Windows
  • Summary of MySql5.7.11 compilation, installation and root password modification
  • mysql 5.7.11 winx64 initial password change

<<:  JS+CSS to realize dynamic clock

>>:  How to install docker on centos

Recommend

Vue keeps the user logged in (various token storage methods)

Table of contents How to set cookies Disadvantage...

Detailed explanation of how to use eslint in vue

Table of contents 1. Description 2. Download rela...

Detailed example of using the distinct method in MySQL

A distinct Meaning: distinct is used to query the...

Html long text automatically cuts off when it exceeds the tag width

When we display long text, we often need to interc...

In-depth understanding of Mysql logical architecture

MySQL is now the database used by most companies ...

MySQL table name case selection

Table of contents 1. Parameters that determine ca...

Details on how to use class styles in Vue

Table of contents 1. Boolean 2. Expression 3. Mul...

Detailed tutorial on installing MariaDB on CentOS 8

MariaDB database management system is a branch of...

Steps to install Pyenv under Deepin

Preface In the past, I always switched Python ver...

Detailed explanation of Docker basic network configuration

External Access Randomly map ports Using the -P f...

MySQL 8.0.18 installation and configuration method graphic tutorial (linux)

This article records the installation and configu...

VMware12 installs Ubuntu19.04 desktop version (installation tutorial)

1. Experimental description In the virtual machin...

Summary of various uses of JSON.stringify

Preface Anyone who has used json should know that...