When installing the server fresh, the mysql server is missing the socket file.
https://minecraft.codeemo.com/mineoswiki/index.php?title=MySQL