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 密碼更改 | 豬窩
You actually make it seem so easy with your presentation but I find this
matter to be really something that I think I would never understand.
It seems too complex and extremely broad for me. I am looking forward for your next post, I will
try to get the hang of it!
mysql root 密碼更改 | 豬窩
Amman Arab college circles is a Jordanian studious institute of future education, located upon Jordan Street, Mubis-Amman. Amman Arab academic world (AAU) was founded in 1997 below the highly developed Education Council No.
(1476) upon 24/11/1997 as a non-profit private university specialized in graduate studies under
the proclaim Amman Arab college circles for Graduate Studies, and thereby
became the first academic circles in Jordan that offers graduate programs leading to Master's Degrees, and Doctoral Degrees.
upon 30/9/1998 the future Education Council gave inherit
for the academic circles to begin working as soon as the fixed No.
(1625). Academic operation started in the coming on of
the Second Semester of the academic year 1999/2000.
One of Jordanian Private Universites
mysql root 密碼更改 | 豬窩
Hello! This is my 1st comment here so I just wanted to give
a quick shout out and tell you I truly enjoy reading through your posts.
Can you recommend any other blogs/websites/forums that go over the same
topics? Thank you so much!
mysql root 密碼更改 | 豬窩
Awesome issues here. I am very happy to peer your
article. Thank you a lot and I am taking a look forward to touch you.
Will you please drop me a e-mail?
mysql root 密碼更改 | 豬窩
all the time i used to read smaller articles or reviews which as
well clear their motive, and that is also happening with
this piece of writing which I am reading at this time.