Recover and reset the default root password for MySQL 5.7

What happens when the initial start up of the server

How to change the root password by using the default password

reset root password when varrunmysqld for UNIX socket file dont exists