Dreaming

2009年3月31日星期二

How to reset mysql root user password

/etc/init.d/mysql stop
mysqld_safe --skip-grant-tables &
mysql -u root

mysql> use mysql;
mysql> update user set password=PASSWORD("YOUR PASSWORD HERE") where User='root';
mysql> flush privileges;
mysql> quit

Kill mysql process
/etc/init.d/mysql start
mysql -u root -p
發佈者: 龍仔 於 星期二, 3月 31, 2009
標籤: Linux

沒有留言:

發佈留言

較新的文章 較舊的文章 首頁
訂閱: 發佈留言 (Atom)

小分類

  • 小工具 (3)
  • 有感而發 (4)
  • 音樂分享 (7)
  • 感情 (3)
  • AIX (25)
  • Linux (5)
  • Oracle (7)
  • Oracle ERP (3)
  • P&D (1)

網誌封存

  • ►  2015 (1)
    • ►  5月 (1)
  • ►  2014 (2)
    • ►  5月 (1)
    • ►  2月 (1)
  • ►  2012 (43)
    • ►  11月 (1)
    • ►  10月 (1)
    • ►  7月 (2)
    • ►  5月 (1)
    • ►  4月 (38)
  • ▼  2009 (14)
    • ►  7月 (1)
    • ►  4月 (1)
    • ▼  3月 (12)
      • How to reset mysql root user password
      • How to resend a mailbox file to recipient
      • Mount standby database readonly
      • GRUB related issue for SLSE 10
      • Check Oracle Database Size SQL
      • Apache Security Hints
      • FTP Control Example
      • Basic Print Queue Control
      • How to add and modify print queue
      • Allow the user in wheel group to be able to login ...
      • Oracle 10G Installation Procedure in SuSE 9.3 Prof...
      • How to drop datafile from tablespace in Oracle 8i
  • ►  2008 (2)
    • ►  7月 (2)

關於我

龍仔
常發白日夢,想多過做的平凡人
查看我的完整個人檔案
「圖片視窗」主題. 由 Blogger 提供.