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 密碼更改 | 豬窩
This text is worth everyone's attention. When can I
find out more?
mysql root 密碼更改 | 豬窩
To begin with, congratses on this post. This is actually definitely amazing
but that is actually why you always crank out my pal.
Great messages that our experts can sink our teeth right
into and definitely visit function.
I love this blog post and you understand you correct. Blogging
may be really difficult for a great deal of people due
to the fact that there is actually a lot included but its own like just about anything else.
Every little thing takes time and also most of us possess the same amount of hrs in a day thus put them to excellent make use of.
Our team all must begin someplace as well
as your plan is actually excellent.
Excellent allotment as well as thanks for the reference listed here, wow ...
Exactly how great is actually that.
Off to share this message right now, I wish all those new bloggers to find
that if they don't actually possess a strategy 10 they carry out right now.
mysql root 密碼更改 | 豬窩
Helpful information. Lucky me I found your website unintentionally, and I am surprised why this coincidence didn't took place in advance!
I bookmarked it.
mysql root 密碼更改 | 豬窩 | 772
If some one desires to be updated with newest technologies
afterward he must be go to see this web page and be up to
date everyday.
mysql root 密碼更改 | 豬窩 | 264
Wonderful blog! I found it while browsing on Yahoo News.
Do you have any suggestions on how to get listed in Yahoo News?
I've been trying for a while but I never seem to get there!
Many thanks