set root password mysql command line code example
Example 1: mysql set root password
use mysql;
update user set authentication_string=PASSWORD("mynewpassword") where User='root';
flush privileges;
quit
Example 2: where to locate set password for mysql
ALTER USER 'root'@'localhost' IDENTIFIED BY 'PASSWORD';