Reset Password Mysql di Kali Linux

Cara reset password MyQsl di Kali Linux sebagai berikut:

1. Matikan MySQL
#/etc/init.d/mysqld stop
2. Masuk ke Server MySQL tanpa Password
# mysqld_safe –skip-grant-tables &
3. Akses ke Server MySQL
# mysql -u root
4. Membuat password root MySQL
mysql> use mysql;
mysql> update user set password=PASSWORD(“password_baru”) where User=’root’;
mysql> flush privileges;
mysql> quit;
5. Matikan Server MySQL
# /etc/init.d/mysqld stop
6. Tes Server MySQL
# /etc/init.d/mysqld start
Login MySQL
# mysql -u root -p

This entry was posted in MySql. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s