use mysql; update user set authentication_string=PASSWORD("mynewpassword") where User='root'; flush privileges; quit