歡迎您光臨本站 註冊首頁

mysql破解密碼

←手機掃碼閱讀     火星人 @ 2014-03-09 , reply:0

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


[火星人 ] mysql破解密碼已經有410次圍觀

http://coctec.com/docs/security/show-post-58910.html