NetXMS Support Forum

English Support => General Support => Topic started by: Jackson on September 14, 2022, 12:01:38 AM

Title: Unable to connect to database server localhost as SA
Post by: Jackson on September 14, 2022, 12:01:38 AM
When attempting to install NetXMS it gets stuck on connecting to the database. I get:

"Unable to connect to database server localhost as sa (could not connect to server: Connection refused (0x0000274D/10061)"
"Is the server running on host "localhost" (::1) and accepting TCP.IP connections on port 5432?"
"Is the server running on host localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?"

Does anyone know how to fix this?
Title: Re: Unable to connect to database server localhost as SA
Post by: gmonk63 on September 14, 2022, 06:36:56 AM
What os are you using ?  Looks like the database is postgres.  Are you able to login via psql 
Title: Re: Unable to connect to database server localhost as SA
Post by: Jackson on September 14, 2022, 05:09:39 PM
I am using Microsoft SQL 2017 and. It is hosted on the same VM as Netxms (Windows Server 2022). I was able to login using sqlcmd. I am very new to SQL I appologize. 
Title: Re: Unable to connect to database server localhost as SA
Post by: Jackson on September 14, 2022, 05:37:06 PM
I figured it out! I had previously been choosing Microsoft SQL as the database but I had to troubleshoot some other problems first and I kept forgetting to switch it. It works now Thank you!