You need to provide more details, such as..
- What is the version of ArcGIS Desktop being used?
- Database version (example: SQL Server 2014 SP2 or PostgreSQL 9.5.x ?)
- Issues happening on one machine only?
- Issues happening while connecting with particular login or any login?
- Error screenshot
- Have you successfully created database connections on this machine before?