Belajar dan berbagi

Bila kita lupa password root Mysql, janganlah panik. Berikut cara mereset password root Mysql:

  1. # /etc/init.d/mysql stop
  2. # mysqld_safe --skip-grant-tables &
  3. # mysql -u root
  4. mysql> use mysql;
    mysql> update user set password=PASSWORD("NEW-ROOT-PASSWORD") where User='root';
    mysql> flush privileges;
    mysql> quit
  5. # /etc/init.d/mysql stop
  6. # /etc/init.d/mysql start

Sekarang cobalah login dengan password root yang baru tersebut.

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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

Tag Cloud

%d bloggers like this: