Reset mysql root password

langsung aja..

  1. stop service mysql dengan cara /etc/init.d/mysqld stop atau dengan cara service mysqld stop
  2. masuk ke mysql safe mode dengan cara ketik mysqld_safe –skip-grant-tables
  3. mysql -u root
    • use mysql;
    • update user set password=PASSWORD(“NEW-ROOT-PASSWORD”) where User=’root’;
    • flush privileges;
    • quit

semoga bisa membantu 😀

Advertisements

2 comments on “Reset mysql root password

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s