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 密碼更改 | 豬窩
Fantastic items from you, man. I've be mindful your stuff prior to and you are just extremely excellent.
I really like what you have obtained right here, really like what you are stating and the
way by which you say it. You're making it entertaining and
you still take care of to stay it sensible. I can't wait to
read far more from you. That is really a terrific site.
mysql root 密碼更改 | 豬窩 | 772
Hey very nice web site!! Man .. Beautiful .. Wonderful ..
I will bookmark your website and take the feeds additionally?
I am satisfied to find so many useful info right here within the
submit, we need work out more strategies in this regard, thank you for sharing.
. . . . .
mysql root 密碼更改 | 豬窩
Have you ever earned $765 just within 5 minutes?
trade binary options
mysql root 密碼更改 | 豬窩 | 1338
This is very fascinating, You're a very skilled blogger.
I have joined your feed and look forward to in quest of extra of your great post.
Additionally, I have shared your website in my social networks
mysql root 密碼更改 | 豬窩 | 1338
Hi, yup this piece of writing is genuinely nice and I have learned
lot of things from it concerning blogging. thanks.