Change mysql user password using command line
In your code, try enclosing password inside single quote. Alternatively, as per the documentation of mysql, following should work – SET PASSWORD FOR ‘jeffrey’@’localhost’ = PASSWORD(‘cleartext password’); FLUSH PRIVILEGES; The last line is important or else your password change won’t take effect unfortunately. EDIT: I ran a test in my local and it worked – … Read more