Home > Database > Mysql Tutorial > Linux、Windows系统下Mysql数据库root密码快速破解

Linux、Windows系统下Mysql数据库root密码快速破解

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:33:25
Original
1245 people have browsed it

Unix linux 第一:首先要把mysqld停止,最好都kill掉 killall mysqld 第二:启动mysql,但是要跳过权限表 /usr/local/mysql/bin/mysqld_safe skip-grant-tables 第三:进去mysql,并修改密码 /usr/local/mysql/bin/mysql -u root mysqluse mysql; mysqlupdat

Unix && linux

第一:首先要把mysqld停止,最好都kill掉
killall mysqld
第二:启动mysql,但是要跳过权限表
/usr/local/mysql/bin/mysqld_safe –skip-grant-tables &
第三:进去mysql,并修改密码
/usr/local/mysql/bin/mysql -u root
mysql>use mysql;
mysql>update set user password=password(“new_pass”) where user=”root”;
mysql>flush privileges;
mysql>\q
第四:重新启动mysql,正常进入。

Windows
第一:进入Windows窗口命令行下,停止mysql服务: net stop mysql
第二:进入mysql的安装目录下,进去bin目录
mysqld-nt.exe –skip-grant-tables
第三:再另一个窗口下,进去mysql的安装目录,并修改密码:
执行mysql.exe
>use mysql;
>update set user password=password(“new_pass”) where user=”root”;
>flush privileges;
>\q
第四:结束mysqld-nt进程,重新启动mysql

大功告成~

Linux、Windows系统下Mysql数据库root密码快速破解 Unix && linu...Linux、Windows系统下Mysql数据库root密码快速破解
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template