Change mysql root password on centos

We can change mysql root password by using cartier love necklace following steps. Here cartier love bracelet
is simple command for it.

  • service mysqld cartier replica stop
  • service mysqld startsos
  • mysql -u root
  • UPDATE mysql.user SET Password=PASSWORD(‘NEWPWD’) WHERE User=’root’;
  • FLUSH PRIVILEGES;
  • service mysqld restart

Categories: Linux, MySql