I'm trying to change the password of one of the users on a MySQL database.
When I do :
ALTER USER 'myuser'@'localhost' IDENTIFIED BY 'mypassword';
I get :
ERROR 1396 (HY000): Operation ALTER USER failed for 'myuser'@'localhost'
Here are some more details :
- I'm using the root account to do this.
- Also, I can see the name of myuser when doing this : SELECT User, Host FROM mysql.user;
- Also please note that the user I'm trying to change the password for might be in use, as it is a very common user.
Can anyone explain me why I have this error ?
If the user being already logged was a reason why I get the error, what would be the solution ?
Here is my version of MySQL : mysql Ver 14.14 Distrib 5.7.33, for Linux (x86_64) using EditLine wrapper
Alexandre