高手幫幫助,有誰知道,我沒有mysql的帳號及密碼,我要如何進去mysql,有沒有萬用密碼呢? - PCZONE 討論區

返回   PCZONE 討論區 > ▲ -- 電 腦 軟 體 討 論 區 > -- FreeBSD & Linux 討 論 版


PCZONE 討論區



通知

-- FreeBSD & Linux 討 論 版 因為本站採用 FreeBSD 作業系統,所以自己本身也多學了一些技巧,希望各位在這裡互相討論 Unix 作業系統及程式等相關問題。

美麗與智慧並重英
高手幫幫助,有誰知道,我沒有mysql的帳號及密碼,我要如何進去mysql,有沒有萬用密碼呢?
如題!

回覆
會員

肉腳回覆

我只知道:MySQL 預設安裝的root 密碼為空,沒見過有萬用密碼...
如果真有 ,與它差一字的勁敵MSSQL定會爽到睡不著覺.
回覆
美麗與智慧並重英

引用:
最初由 gerrybbs 發表
肉腳回覆

我只知道:MySQL 預設安裝的root 密碼為空,沒見過有萬用密碼...
如果真有 ,與它差一字的勁敵MSSQL定會爽到睡不著覺.

是實上是我的linux主機被怪客入侵,把我的mysql帳號及密碼改掉害我進不去!真不知要如何救???
回覆
進階會員

試試看...


1.先用kill的指令強制停掉Mysql 服務
2.--skip-grant-tables選項重新啟動mysqld
3.用 grant sql command 命令修改user table的root的密碼欄
4.flush privileges

這樣應該可以將mysql的 root 密碼改回來了..

試試
Good Luck !!!!
回覆
會員

引用:
最初由 bigmichael 發表
[color=#ff002d]
是實上是?..
試試這個
http://lists.mysql.com/cgi-ez/ezmlm-...acifmbodddcfoi
回覆
美麗與智慧並重英

引用:
最初由 repsol 發表
試試看...


1.先用kill的指令強制停掉Mysql 服務
2.--skip-grant-tables選項重新啟動mysqld
3.用 grant sql command 命令修改user table的root的密碼欄
4.flush privileges

這樣應該可以將mysql的 root 密...
高手我做到您的第二個步驟,做不出來也,你看我下的方法

[root@linux /root]# --skip-grant-tables
bash: --skip-grant-tables: command not found
[root@linux /root]# skip-grant-tables
bash: skip-grant-tables: command not found
[root@linux /root]#


我想您的意思應該不是這樣下吧!因為我不懂你寫的意思,煩請解釋一下。
謝謝啦!
回覆
會員

[QUOTE]最初由 bigmichael 發表
[B]
引用:
最初由 repsol 發表
高手我做到您的第二個步驟,做不出來也,你看我下的方法

[root@linux /root]# --skip-grant-tables
bash: --skip-grant-tables: command not found
[root@linux /root]# skip-grant-tables
bash: skip-grant-tables: command not found
[root@linux /root]#


我想您的意思應該不是這樣下吧!因為我不懂你寫的意思,煩請解釋一下。
謝謝啦!
type following command on the shell
mysqld --skip-grant-tables

good luck
回覆
美麗與智慧並重英

[QUOTE]最初由 gerrybbs 發表
[B][QUOTE]最初由 bigmichael 發表
[B]
引用:
最初由 repsol 發表
高手我做到您的第二個步驟,做不出來也,你看我下的方法

[root@linux /root]# --skip-grant-tables
bash: --skip-grant-tables...
我試了你懊建議
可是沒有這樣的
[root@linux /root]# mysqld --skip-grant-tables
bash: mysqld: command not found

到底要如何下呢?

回覆
進階會員

[QUOTE]最初由 bigmichael 發表
[B][QUOTE]最初由 gerrybbs 發表
[B][QUOTE]最初由 bigmichael 發表
[B]
引用:
最初由 repsol 發表
高手我做到您的第二個步驟,做不出來也,你看我下的方法

[root@linux /root]# --skip-...
這個是路徑問題
先找到mysqld 這個command 的路徑吧
看看這個command放在哪個路徑
找到之後,再加上--skip-grant-tables這個啟動的參數吧...

Good Luck !!!
回覆
會員

更改root密碼
我同學跟我說的..您試試看吧!
我是過r8.0的版本..可以
mysql mysql
mysql>UPDATE user SET password=password('newpassword') WHERE user='root';
mysql>FLUSH PRIVILEGES;
mysql>exit;
mysqladmin -root -p shutdown
Enter password://輸入新的密碼
/etc/rc.d/inid.c/mysql start

回覆







 XML   RSS 2.0   RSS 
本站使用 vBulletin 合法版權程式
站務信箱 : [email protected]

本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。