mysql root 密碼更改
如果忘記了 MySQL 的 root 密碼,可以用以下方法重新設定:
1. 關閉 MySQL 伺服器。
/etc/rc.d/init.d/mysqld stop
2. 用以下指令啟動 MySQL,以跳過檢查權限的資料表
mysqld_safe --skip-grant-tables &
(顯示訊息 nohup: ignoring input and redirecting stderr to stdout
Starting mysqld daemon with databases from /var/lib/mysql 直接按Enter)
3. 現在己經可以用空密碼進入 MySQL
mysql -u root
4. 進入 MySQL 後執行以下指令更改 mysql root 密碼:
mysql> update mysql.user set password=PASSWORD(」new_password」) where User=』root';
mysql> flush privileges;
mysql> quit
5. 最後只需重新啟動 MySQL,便可以用新設定的密碼進入了。
參考自:http://www.cosa.org.tw/forum/index.php?topic=73.0
迴響
mysql root 密碼更改 | 豬窩
Hey very nice blog!
mysql root 密碼更改 | 豬窩 | 763
First off I would like to say excellent blog! I had a quick
question that I'd like to ask if you do not mind. I was interested to find
out how you center yourself and clear your head before writing.
I've had a hard time clearing my mind in getting my thoughts out.
I truly do enjoy writing however it just seems like the
first 10 to 15 minutes are usually wasted just trying to figure out how to begin. Any ideas or hints?
Many thanks!
mysql root 密碼更改 | 豬窩 | 1241
It's a pity you don't have a donate button! I'd
certainly donate to this outstanding blog! I guess
for now i'll settle for book-marking and adding your RSS feed to my Google account.
I look forward to new updates and will talk about this blog with my Facebook group.
Talk soon!
mysql root 密碼更改 | 豬窩 | 763
I have been exploring for a little bit for any high quality articles
or weblog posts on this kind of area . Exploring in Yahoo I at last stumbled
upon this website. Reading this information So i am happy to exhibit that
I have a very good uncanny feeling I found
out just what I needed. I such a lot indubitably will make
certain to do not disregard this website and give it a look on a
continuing basis.
mysql root 密碼更改 | 豬窩
With havin so much written content do you ever runn
intro any problems of plagorism oor copyright violation? My site has a lot of completely unique
content I've either authored myself or outsourced but it looks
like a lot of it iss popping it up alll over the web withut my authorization.
Do you know any technuques to help prevent content ffrom being stolen? I'd certainly appreciate it.