MySQL server (5.7.x) Password Reset
Stop the mysq database service.
```bashCREATE Data service mysql stop
Create needed unix socket directory first.
```bash
mkdir -p /var/run/mysqld && chown mysql:mysql /var/run/mysqld
Start the server in safe mode in the background.
Open the MySQL client as root.
Change the root user.
UPDATE `mysql`.`user`
SET `authentication_string`=PASSWORD('the-root-password'), `password_expired`='N'
WHERE `User`='root' AND `Host`='localhost';
Shutdown mysql in safe mode.
Start the service again.
Recover from Mysql "Plugin 'auth_socket' is not loaded"
This happens when an older version backup is restored on a newer version.
Create needed /var/run/mysqld directory for the socket.
Start mysqld_safe.
Login to MySQL as root.
Use mysql database.
Update password to nothing.
Set password resolving to default mechanism for root user
Stop the mysqld_safe appliaction.