Mysql的Root密码遗忘的解决办法_MySQL
Jun 01, 2016 pm 01:47 PMbitsCN.com
如果忘记了 MySQL 的 root 密码,可以用以下方法重新设置:
1. KILL掉系统里的MySQL进程,方法如下:
a、点击桌面工具栏打开任务栏管理器。
b、从任务管理器的进程中找到mysqld-nt.exe进程,点击右键选择结束进程。
2. 在命令行中输入命令 mysqld-nt --skip-grant-tables 启动MySQL,以不检查权限的方式启动;
3. 然后另外开一窗口,用空密码方式使用root用户登录 MySQL;
4. 修改root用户的密码;
mysql> update mysql.user set password=PASSWORD(新密码) where User=root;
mysql> flush privileges;
mysql> quit

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How to complete the horror corridor mission in Goat Simulator 3

How to pass the Imperial Tomb mission in Goat Simulator 3

How to solve the problem that Windows 11 prompts you to enter the administrator username and password to continue?

How to do the rescue Steve mission in Goat Simulator 3

How to set router WiFi password using mobile phone (using mobile phone as tool)

How to deal with the problem that the toolbar cannot be seen in WPS2019

What to do if the Win10 Task Manager cannot end the process_What to do if the Win10 Task Manager cannot end the process

Tutorial on changing wifi password on mobile phone (simple operation)
