I\'m running MySQL in Ubuntu, default installation.
How can I change the username from root
to another one, let\'s say admin
? Preferably from
I just wanted to say that for me, there was no column 'password'.
To change password, the correct field was authentication_string
So the command is
update user set authentication_string=PASSWORD('new password') where user='admin';
I'm no MySQL expert, so I'm not sure exactly why, but what I said is correct, at least in my case.