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 密碼更改 | 豬窩 | 174
blgo comments are so useful in good information sharing. comec to my site so i can tell you
what to do in life to be a rich boy
mysql root 密碼更改 | 豬窩 | 1240
Stunning quest there. What happened after? Good luck!
mysql root 密碼更改 | 豬窩 | 534
If some one wishes expert view regarding blogging afterward
i propose him/her to visit this weblog, Keep up the nice work.
mysql root 密碼更改 | 豬窩 | 1620
You're so interesting! I don't suppose I have read through something like this
before. So great to find someone with genuine thoughts
on this subject matter. Really.. thank you for starting this up.
This site is something that is needed on the web, someone with a little originality!
mysql root 密碼更改 | 豬窩
First of all, congratses on this message. This is really excellent
however that is actually why you constantly crank out my buddy.
Terrific blog posts that we may sink our pearly whites
in to and actually visit operate.
I enjoy this blog and you recognize you're
right. Blog writing could be extremely frustrating
for a lot of folks because there is actually a great deal entailed yet its like just about anything
else. Everything takes opportunity and all of us have the very same amount of hrs in a
day so placed all of them to really good use. All of us need to start somewhere and also your strategy is excellent.
Terrific portion and also many thanks for the acknowledgment listed here,
wow ... How great is that.
Off to discuss this post now, I wish all those
brand new blog writers to observe that if they do not already possess a strategy ten they
do right now.