mysqladmin command:
mysqladmin -u user_name -h host_name password "password"
user table row that matches user_name in the User column and the connecting client host in the Host column.
SET PASSWORD statement:
SET PASSWORD FOR 'user_name'@'%' = PASSWORD('password');
FOR clause specifies the user.
root that have update access to the mysql database can change the password for other users.
SET PASSWORD = PASSWORD('password');
How do I keep passwords secure?
© 2007 John Michael Pierobon