作者: 沙拉麵 | 1,436拜訪人數
• 星期四, 9月 18th, 2008

1. killall mysqld
2. mysqld -u root –skip-grant-tables &
3. mysql
4. (mysql) use mysql;
5. (mysql) UPDATE user SET password=password(’password’) where user=’root’;
6. (mysql) FLUSH PRIVILEGES;
7. 重啟mysql

為了一個不在管轄範圍內的伺服器,不知道mysql密碼,只能用這暴力破解方法清除密碼
其他的終於在三個鐘頭後全部設定完成….


相關文章

分類: 技術筆記  | 標籤:
本篇文章發表時間為 星期四, 9月 18th, 2008 9:16 pm , 您可以透過 RSS 2.0 取得本篇任何回應/迴響。 您可以 留下迴響, 或者在您的網站上 引用(trackback) 本篇文章。
留下迴響

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>