Forgot your MySQL password twice? At first I did the stupidest thing, uninstalling and reinstalling. Now there is a way to set the password back without uninstalling. The knowledge comes from the Internet. I have organized it here briefly. If you meet friends with the same problem, you can try it. The following implementations are all completed on Windows systems. first step Find mysqld.exe in the Task Manager and end the process. Step 2 Find the bin directory under the mysql installation directory. Mine is C:\Program Files\MySQL\mysql-5.6.24\bin Open a console in this directory and enter: mysqld --skip-grant-tables Step 3 Switch to the path just now and open a new controller 1) Input: mysql 2) Input: show databases; 3) Input: use mysql 4) Input: show tables; At this time you can see the user table Input: select user,password,host from user; you can see the contents in the table. We now modify the data in the table through update. Input: update user set password=passwrod("123456") where user="root" and host="localhost"; Since then, the mysql password has been changed. The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Centos 7 64-bit desktop version installation graphic tutorial
>>: JavaScript implements a box that follows the mouse movement
For record, it may be used in the future, and fri...
In actual work or interviews, we often encounter ...
CocosCreator version: 2.3.4 Most games have layer...
Data URI Data URI is a scheme defined by RFC 2397...
Table of contents A brief overview of the replica...
Table of contents Problem Description The general...
This article example shares the specific code of ...
Many friends have always wanted to know how to ru...
Standalone hbase, let’s talk about it first. Inst...
This article introduces a framework made by Frame...
DOMContentLoaded Event Literally, it fires after ...
Block-level element features : •Always occupies a ...
1. Try to use single column instead of multi-colum...
NextCloud You can share any files or folders on y...
Table of contents variable Use meaningful and pro...