1. matikan service MYSQL
# service mysqld stop
2. jalankan service MYSQL dalam safe mode
# mysqld_safe --skip-grant-tables
3. login/konek sebagai root
#mysql -u root
4. update password root
mysql> use mysql;
mysql> UPDATE user SET Password = PASSWORD ('isi_password_baru') WHERE User='root';
mysql> FLUSH PRIVILEGES;
mysql> quit;
5. restart service MYSQL
No comments:
Post a Comment