Database Connection Refused - Troubleshooting Print

  • 0

If you get "Connection Refused" errors for your database:

Check Connection String:

MySQL:

  • Server: localhost or 127.0.0.1 (for same server)
  • Port: 3306
  • Username: Your database username
  • Password: Your database password

MS SQL:

  • Server: the server shown in Plesk > Databases, with the port after a comma: sql2025-001.adaptivewebhosting.com,1433 (SQL Server 2025, all new accounts) or sql2022-001.adaptivewebhosting.com,1433 (SQL Server 2022)
  • Accounts set up on sql2022-002.adaptivewebhosting.com connect with port 1443, or with sql2022-001.adaptivewebhosting.com,1433

Common Issues:

1. Wrong Server Address:

  • Check Plesk > Databases for the server your database is on (a login only exists on its own server)
  • Include the port after a comma, for example ,1433

2. Wrong Credentials:

  • Reset password in Plesk > Databases
  • Verify username matches exactly

3. Remote Access Disabled:

  • MySQL may be restricted to localhost
  • Contact support to enable remote access

4. Firewall:

  • Repeated failed logins block your IP automatically for a while; open a ticket to lift the block

Was this answer helpful?

« Back