The syntax to alter a user password is : Example : or or it can be done like this as well by using the GRANT option Note:
Very important to know that SET PASSWORD may be recorded in server logs or in a history file such as ~/.mysql_history, which means that clear-text passwords may be read by anyone having read access to that information. So check the permissions on this file.