CN104462936A - 一种Windows环境下MySQL数据库管理员账户忘记密码的解决方法 - Google Patents

一种Windows环境下MySQL数据库管理员账户忘记密码的解决方法 Download PDF

Info

Publication number
CN104462936A
CN104462936A CN201410683194.XA CN201410683194A CN104462936A CN 104462936 A CN104462936 A CN 104462936A CN 201410683194 A CN201410683194 A CN 201410683194A CN 104462936 A CN104462936 A CN 104462936A
Authority
CN
China
Prior art keywords
mysql
password
enter
user
root
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410683194.XA
Other languages
English (en)
Inventor
齐兆勇
徐震宇
孙傲冰
季统凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
G Cloud Technology Co Ltd
Original Assignee
G Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by G Cloud Technology Co Ltd filed Critical G Cloud Technology Co Ltd
Priority to CN201410683194.XA priority Critical patent/CN104462936A/zh
Publication of CN104462936A publication Critical patent/CN104462936A/zh
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2131Lost password, e.g. recovery of lost or forgotten passwords

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)

Abstract

本发明涉及软件开发技术领域,具体涉及一种Windows环境下MySQL数据库管理员账户忘记密码的解决方法。本发明通过DOS命令下关闭MySQL服务,进入安全模式,通过命令行重新设置管理员(root)用户的密码;本发明可以有效解决因忘记管理员密码而导致重新安装数据库所带来的不必要麻烦,更重要的是能挽回因忘记管理员密码而导致数据库中原有数据丢失所带来的巨大损失。

Description

一种Windows环境下MySQL数据库管理员账户忘记密码的解决方法
技术领域
本发明涉及软件开发技术领域,具体涉及一种Windows环境下MySQL数据库管理员账户忘记密码的解决方法。
背景技术
随着云时代的来临,大数据(Big data)也吸引了越来越多的关注,很多的数据分析都是建立在大数据的基础之上,可见数据在信息技术高度发展的今天尤为重要,而数据库显然就是这些数据的仓库;在实际工作中软件开发人员有可能会维护多个数据库,当忘记了某个数据管理密码时,如果处理不当就面临两大问题:重新安装数据库或数据库中数据丢失,这样就严重影响开发进度或者某他更大的损失。
发明内容
本发明解决的技术问题在于提供一种Windows环境下MySQL数据库管理员账户忘记密码的解决方法。
本发明解决上述问题的技术方案是:
通过关闭通过DOS命令下关闭MySQL服务,进入安全模式,通过命令行重新设置管理员(root)用户的密码。
包括以下步骤:
第1步、进入DOS命令行窗口执行:net stop mysql来关闭MySQL服务;
第2步、改变当前路径进入MySQL安装目录,例如:cd D:\ProgramFiles\MySQL\MySQL Server 5.0\bin;
第3步、执行命令:mysqld-nt--skip-grant-tables,进入MySQL的安全模式;
第4步、重新打开一个DOS命令行窗口,切换到MySQL安装目录,例如:cdD:\Program Files\MySQL\MySQL Server 5.0\bin;
第5步、输入命令:mysql-uroot-p使用空密码方式进入MySQL,回车后进入MySQL控制台;
第6步、输入SQL命令重置root用户密码:update mysql.user setpassword=PASSWORD(’admin123’)where User=’root’;
第7步、刷新权限表:flush privileges;
第8步、输入命令:quit退出控制台。
本发明的有益效果是:通过关闭通过DOS命令下关闭MySQL服务,进入安全模式,通过命令行重新设置管理员(root)用户的密码,有效解决因忘记管理员密码而导致重新安装数据库所带来的不必要麻烦,更重要的是能挽回因忘记管理员密码而导致数据库中原有数据丢失所带来的巨大损失。
附图说明
下面结合附图对本发明进一步说明:
图1是本发明流程图。
具体实施方式
如图1所示,本发明通过关闭通过DOS命令下关闭MySQL服务,进入安全模式,通过命令行重新设置管理员(root)用户的密码,具体步骤如下:
第1步、进入DOS命令行窗口执行:net stop mysql来关闭MySQL服务;
第2步、改变当前路径进入MySQL安装目录,例如:cd D:\ProgramFiles\MySQL\MySQL Server 5.0\bin;
第3步、执行命令:mysqld-nt--skip-grant-tables,进入MySQL的安全模式;
第4步、重新打开一个DOS命令行窗口,切换到MySQL安装目录,例如:cdD:\Program Files\MySQL\MySQL Server 5.0\bin;
第5步、输入命令:mysql-uroot-p使用空密码方式进入MySQL,回车后进入MySQL控制台;
第6步、输入SQL命令重置root用户密码:update mysql.user setpassword=PASSWORD(’admin123’)where User=’root’;
第7步、刷新权限表:flush privileges;
第8步、输入命令:quit退出控制台。

Claims (2)

1.一种Windows环境下MySQL数据库管理员账户忘记密码的解决方法,其特征在于:通过DOS命令下关闭MySQL服务,进入安全模式,通过命令行重新设置管理员(root)用户的密码;
所述的DOS命令下关闭MySQL服务是进入DOS窗口执行命令:net stop mysql来关闭MySQL服务;
所述的进入安全模式是执行命令:mysqld-nt--skip-grant-tables,这种方式启动MySQL服务无需密码验证;
所述的通过命令行重新设置管理员(root)用户的密码是执行命令:updatemysql.user set password=PASSWORD(’admin123’)where User=’root’。
2.根据权利要求1所述的一种Windows环境下MySQL数据库管理员账户忘记密码的解决方法,主要包括以下步骤:
第1步、进入DOS命令行窗口执行:net stop mysql来关闭MySQL服务;
第2步、改变当前路径进入MySQL安装目录,例如:cd D:\ProgramFiles\MySQL\MySQL Server 5.0\bin;
第3步、执行命令:mysqld-nt--skip-grant-tables,进入MySQL的安全模式;
第4步、重新打开一个DOS命令行窗口,切换到MySQL安装目录,例如:cd D:\Program Files\MySQL\MySQL Server 5.0\bin;
第5步、输入命令:mysql-uroot-p使用空密码方式进入MySQL,回车后进入MySQL控制台;
第6步、输入SQL命令重置root用户密码:update mysql.user setpassword=PASSWORD(’admin123’)where User=’root’;
第7步、刷新权限表:flush privileges;
第8步、输入命令:quit退出控制台。
CN201410683194.XA 2014-11-23 2014-11-23 一种Windows环境下MySQL数据库管理员账户忘记密码的解决方法 Pending CN104462936A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410683194.XA CN104462936A (zh) 2014-11-23 2014-11-23 一种Windows环境下MySQL数据库管理员账户忘记密码的解决方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410683194.XA CN104462936A (zh) 2014-11-23 2014-11-23 一种Windows环境下MySQL数据库管理员账户忘记密码的解决方法

Publications (1)

Publication Number Publication Date
CN104462936A true CN104462936A (zh) 2015-03-25

Family

ID=52908961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410683194.XA Pending CN104462936A (zh) 2014-11-23 2014-11-23 一种Windows环境下MySQL数据库管理员账户忘记密码的解决方法

Country Status (1)

Country Link
CN (1) CN104462936A (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107247643A (zh) * 2017-06-28 2017-10-13 上海优刻得信息科技有限公司 一种数据库管理方法、装置、系统、存储介质及设备
CN110163003A (zh) * 2019-05-30 2019-08-23 浙江齐治科技股份有限公司 一种密码管理方法及装置

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477485A (zh) * 2009-01-15 2009-07-08 中山大学 一种基于ASP.net远程备份和还原MySQL数据库方法

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477485A (zh) * 2009-01-15 2009-07-08 中山大学 一种基于ASP.net远程备份和还原MySQL数据库方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
网友: "windows下mysql忘记root密码的解决方法", 《脚本之家》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107247643A (zh) * 2017-06-28 2017-10-13 上海优刻得信息科技有限公司 一种数据库管理方法、装置、系统、存储介质及设备
CN110163003A (zh) * 2019-05-30 2019-08-23 浙江齐治科技股份有限公司 一种密码管理方法及装置
CN110163003B (zh) * 2019-05-30 2021-04-30 浙江齐治科技股份有限公司 一种密码管理方法及装置

Similar Documents

Publication Publication Date Title
US11568042B2 (en) System and methods for sandboxed malware analysis and automated patch development, deployment and validation
US10430581B2 (en) Computer telemetry analysis
US11588793B2 (en) System and methods for dynamic geospatially-referenced cyber-physical infrastructure inventory and asset management
SG11201900533RA (en) Method and device for controlling service operation risk
US20160065554A1 (en) Authentication Management
CN109564609A (zh) 利用先进计算机决策平台的计算机攻击的检测缓和与矫正
US9703854B2 (en) Determining criticality of a SQL statement
CN106446638A (zh) 一种云计算操作系统安全访问方法及装置
US20180247234A1 (en) Platform for management and tracking of collaborative projects
CN103581187A (zh) 访问权限的控制方法及控制系统
US11805106B2 (en) System and method for trigger-based scanning of cyber-physical assets
KR20140035146A (ko) 정보보안 장치 및 방법
CN103577402A (zh) 任务添加、修改以及管理方法及任务管理系统
CN104486357A (zh) 一种基于ssh网站实现rbac访问权限控制的方法
WO2018225012A3 (en) SYSTEM AND METHOD FOR INTELLIGENT INTERACTION BETWEEN WEBSITE COMPONENTS
Gettings The fake, the false, and the fictional: The Daily Show as news source
CN104462936A (zh) 一种Windows环境下MySQL数据库管理员账户忘记密码的解决方法
CN115688133A (zh) 一种数据处理方法、装置、设备以及存储介质
CN105045627A (zh) 一种实现服务器在线更新网卡配置文件的方法
CN105320711A (zh) 巨量数据存取方法以及使用该方法的系统
CN105608344A (zh) 一种应用程序安全管理的系统与方法
CN106126401A (zh) 一种基于安全虚拟桌面的视频检索方法
CN104298756A (zh) 一种基于内外网的数据库之间数据的交换方法
CN104866569A (zh) 一种Linux环境下MySQL数据库管理员账户忘记密码的解决方法
CN105550567A (zh) 一种Windows虚拟机USB设备读写权限管控方法

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150325