New Subject
Random
Previous
Next
|
重設密碼

先停止 MySQL,再以參數 --skip-grant-tables 啟動mysql

# bin/mysqld_safe --skip-grant-tables&

連線到 MySQL Server:

# bin/mysql mysql
跳出 mysql>

mysql> UPDATE mysql.user SET Password=PASSWORD('這裡輸入你要的新密碼')
-> WHERE User='root';
mysql> FLUSH PRIVILEGES;
mysql> exit

'這裡輸入你要的新密碼' 即是你要改的新密碼

測試是否成功

# ./bin/mysqladmin -u root -p shutdown

Enter password: 輸入新更改後的密碼

如果mysql關閉 就是ok了
  • Keywords : mysql, 新密碼, 輸入, tables, grant, MySQL, 連線到, 輸入新, 跳出, 要改, 測試, 改後, 密碼, 啟動mysql, 否成功, 再以參數, 先停止, shutdown, password, mysql關閉
0 0
2009-01-21T09:05:50+0000


  • Now, you can post comments by Facebook Account when your Yampiz account was logout or unvariable. whatever, we suggest to post comment by Yampiz Account to get more bounds to join new events of Heyxu
Comment
 
Verify