https://www.collaborationpro.com/failed-to-connect-to-the-configuration-database-when-adding-server-to-sharepoint-2013-farm/
Failed to connect to the configuration database when adding server to SharePoint 2013 farm