Now I wonder is there any webmin command to change MySQL root password in a command line? I wonder does clicking on Webmin > Servers >MySQL Database Server > Change Administration Password > … > Change Now trigger any webmin CLI command?
shell> mysql
mysql> UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root';
mysql> FLUSH PRIVILEGES;
but I am looking for even nicer and shorter way of updating MySQL root password in a CLI. Oneliner like /usr/libexec/webmin/changepass.pl /etc/webmin root would be just great.
I am looking for easy way of changing MySQL root for multiple copies of the same Cloudmin VPS’. Can’t leave the old one for different VPS’, at the same time constantly changing it with looking first at the old password is (ok and doable, but) tiresome. The way I found also takes too long, especially when doing it many many times.
So I am starting to think if there is no onliner way of changing the MySQL root password without old password, then maybe there is a file containing the password somewhere, that could be simply removed in CLI, so that every copied VPS system required to set new password? In other words is there easy way to get rid of current (old) password?