Mengganti password MySQL

Stop service :
#service mysqld stop
#mysqld_safe –skip-grant-tables &   –> enter 2x

Masuk ke MySQL dengan username root tanpa password :
#mysql -u root

Mereset Password (jika lupa password) :
#use mysql
# UPDATE user SET password=PASSWORD(‘password yg baru’) WHERE user=’root’;
#FLUSH PRIVILEGES;
# quit

Restart Service mysql :
# /etc/init.d/mysqld restart

Testing :
# mysql -u root -p
Atau lewat browser http://localhost/phpmyadmin

Pos ini dipublikasikan di Linux Console. Tandai permalink.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s