Change password to an user in MySQL


/ Published in: SQL
Save to your folder(s)

Only works if you have the mysql-root password


Copy this code and paste it in your HTML
  1. UPDATE USER SET password=PASSWORD('mynewpassword') WHERE USER='root';
  2. FLUSH privileges;

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.