当前位置:网站首页>Three minutes to learn how to retrieve the MySQL password
Three minutes to learn how to retrieve the MySQL password
2022-06-23 16:37:00 【User 7353950】
One 、 In the test work, we will definitely write some sq The query statement is convenient for us to verify whether the data is correct , So as to judge whether the current software has defects , But in the process of query, we must connect to the database first , If the database password is forgotten, we cannot complete the work , Here I will teach you how to change your password quickly , And resetting the database password , This greatly improves the efficiency of our work
Two 、 First we need to learn how to modify mysql Data password , Here it is navicat To connect to the database, which is also the most commonly used software
• To open the first navicat As shown in the following figure, first find the location where your password is stored , Stored in the warehouse of the factory mysql Find the best one in the table under the file directory user This is used to store the database password , The corresponding user name and password
• Then click the query button to create a new query method , Corresponding to our modification mysql The password is to write a sql The statement is as follows
update user set password=password('123') where user='root';
flush privileges; You need to refresh permissions to make the modification effective
• This is the successful modification mysql And then restart it in the local service mysql service , Direct closure navicat When you open it again, the connection to the database will fail, indicating that the database connection failed , Just re edit and input the modified password, as shown in the figure
3、 ... and 、 The above is how to change the password , If one day you forget your password, you don't have to uninstall the database and reinstall it , The following shows how to reset the data password
• First, find the location where the database is installed my.int The file of (C:Program Files (x86)MySQLMySQL Server 5.1) Address location as shown in the figure below
• Open the file with notepad and find [mysqld] This line adds the following code below This allows you to log in to the database without a password skip-grant-tables Then save and refresh again mysql The service can successfully connect without a password .
• After successful login, you can reset the new password according to the above operation of changing the password
• update user set password=password('123') where user='root';
flush privileges; You need to refresh permissions to make the modification effective
such password Just remember the new password and forget it later. Don't worry about uninstalling and reinstalling the software .
边栏推荐
- The summary of high concurrency experience under the billion level traffic for many years is written in this book without reservation
- R language uses colorblinr package to simulate color blind vision, and uses edit to visualize the image of ggplot2_ The colors function is used to edit and convert color blindness into visual results
- golang数据类型图
- 什么是抽象类?怎样定义抽象类?
- R language uses timeroc package to calculate the multi time AUC value of survival data in the case of no competition, uses Cox model, adds covariates, and visualizes the multi time ROC curve of surviv
- Openresty Foundation
- Golang data type diagram
- Opengauss database source code analysis series articles -- detailed explanation of dense equivalent query technology (Part 1)
- 泰山OFFICE技术讲座:使用字体斜体的四种情形
- Use of iscellstr function in MATLAB
猜你喜欢

CoAtNet: Marrying Convolution and Attention for All Data Sizes翻译

Implementation of golang bubble sort code

NPM install problem solving (NVM installation and use)

npm install 问题解决(nvm安装与使用)
![Generating binary search balanced tree [using tree recursion]](/img/b3/f8edf45bdfdced7c3698088dbf7d84.png)
Generating binary search balanced tree [using tree recursion]

Interpreting the 2022 agile coaching industry status report

leetcode:面試題 08.13. 堆箱子【自頂而下的dfs + memory or 自底而上的排序 + dp】

图扑数字孪生 3D 风电场,智慧风电之海上风电

二分查找法思路分析

openGauss数据库源码解析系列文章—— 密态等值查询技术详解(上)
随机推荐
《ThreadLocal》
Safe and comfortable, a new generation of Qijun carefully interprets the love of the old father
R language ggplot2 visualizes horizontal boxplot with coord_flip, and adds jittered data points to display the distribution
OutputDebugString使用说明以及异常处理
Sleuth + Zipkin
Golang writes to JSON files
VGg download (.Net file and imagenet-vgg-verydeep-19)
如何选择券商?手机开户安全么?
Coatnet: marrying revolution and attention for all data sizes
R语言使用gt包和gtExtras包优雅地、漂亮地显示表格数据:gtExtras包的gt_sparkline函数以表格的形式可视化分组数据的线图(line plot)、包含分组类别、分组类别对应的数值
The R language uses the RMSE function of the yardstick package to evaluate the performance of the regression model, the RMSE of the regression model on each fold of each cross validation (or resamplin
亚朵更新招股书:继续推进纳斯达克上市,已提前“套现”2060万元
走好数据中台最后一公里,为什么说数据服务 API 是数据中台的标配?
How to select securities companies? Is it safe to open a mobile account?
融云:让银行轻松上“云”
CoAtNet: Marrying Convolution and Attention for All Data Sizes翻译
leetcode:面試題 08.13. 堆箱子【自頂而下的dfs + memory or 自底而上的排序 + dp】
机器人方向与高考选专业的一些误区
NLP 论文领读|改善意图识别的语义表示:有监督预训练中的各向同性正则化方法
Mobile cloud jointly builds the capability base of information innovation cloud and helps the development of China's information innovation industry