Syntax:

Example:

mysqladmin -u root -h host_name password “newpassword”

You will also want to restart the database server after running this command

mysqladmin -u root -h localhost password ws8dr8as3