Job for mysql.service failed because the control process exited with error code
I don't see anyone else answering this but I had the same issue and this could help someone.
The first error should be about network, binding by default an address such as 127.0.0.1 for localhost could trigger that and you should try to connect using the binding address a not 'localhost'.
Now, after entering safe mode I ran into a similar error! Even when the process of mysql is not &quot;Active&quot; there where still running processes after I stopped the safe-mode session and that was preventing the service to start. I was able to locate does processes using this command: sudo service mysql stop &amp;&amp; pkill -f mysql receiving this alert:
pkill: killing pid 8912 failed: Operation not permitted
pkill: killing pid 8913 failed: Operation not permitted
pkill: killing pid 9273 failed: Operation not permitted

after that I manually kill the processes using:
sudo kill 8912
sudo kill 8913
sudo kill 9273

and ran again the command: sudo service mysql stop &amp;&amp; pkill -f mysql
Finally I started the service again service mysql start and was running normally. I entered safe-mode to reset the password of the root user.