From LedHed's Wiki
Jump to: navigation, search
mysqladmin -u <USERNAME> -p password <NEW_PASSWORD>

NOTE: You will be prompted for the old password.