default localhost password mysql code example
Example 1: how to change mysql localhost password
ALTER USER 'root'@'localhost' IDENTIFIED BY 'NewPassword'
Example 2: default password of mysql
mysqladmin -u root password NEWPASSWORD
ALTER USER 'root'@'localhost' IDENTIFIED BY 'NewPassword'
mysqladmin -u root password NEWPASSWORD