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 密碼更改 | 豬窩
My spouse and I absolutely love your blog and find many of
your post's to be just what I'm looking for. Would you offer guest writers to write content for yourself?
I wouldn't mind publishing a post or elaborating on a lot of
the subjects you write in relation to here. Again, awesome web site!
mysql root 密碼更改 | 豬窩 | 763
Wow, this short article exceptionally strike the nail upon the brain! I've been having difficulties with
this make any difference for many years and it's thus contemporary toward look at another person very dive deep into the predicament and
offer you handy providers. The illustrations oneself made available
have been remarkably relatable and I identified myself nodding together as I browse throughout them.
One particular matter that particularly resonated with me was the
simple fact yourself generated relating to the great importance of
self-treatment. It's therefore simple toward obtain stuck up inside of the working day-in direction of-working day grind and
forget our personal well being. Still as on your own rightly pointed out, having the period towards recharge and prioritize our psychological and bodily conditioning is vital if we
require toward be our most straightforward selves.
I'm absolutely transferring toward attempt utilizing some of the suggestions oneself shared.
Thank on your own for this informative and inspiring write-up!
mysql root 密碼更改 | 豬窩
Your means of explaining all in this piece of writing is in fact fastidious, all
be able to effortlessly be aware of it, Thanks a lot.
mysql root 密碼更改 | 豬窩 | 763
More complicated strategies such as 'card counting' described below have added
to the game's popularity. If the dealer has an 8 or higher, then I
am basically risking double my bet to get 2 18s.
mysql root 密碼更改 | 豬窩 | 55
I have read so many posts on the topic of the blogger lovers except this post is in fact a nice article, keep it up.