Tools

WHD error: Unable to connect to database

This article describes how to resolve the following error: Unable to connect to database.

First published date

10/19/2018 4:11 AM

Last published date

1/30/2025 5:32 PM

Overview

The following error displays in the Web Help Desk Console.

Unable to connect to database.

The resolution steps below can be used for MySQL and MSSQL.

Product section

Web Help Desk

Cause

The MySQL Java Database Connector (JDBC) driver is not installed on the Web Help Desk Server. To ensure compliance with MySQL licensing restrictions, the MySQL JDBC driver is not bundled with Web Help Desk.

The MSSQL service is not running or not accepting connections.

Resolution

If you are connecting to a MySQL database (used for some asset discovery connections), download and install the MySQL JDBC driver from the MySQL website.

  1. Log in to the Web Help Desk server as an administrator.
  2. Stop the Web Help Desk service
  3. Open a web browser and navigate to the MySQL website  (© 2018, Oracle Corporation and/or its affiliates, available at https://dev.mysql.com/, obtained on November 20, 2018.)
  4. Locate and download the Platform Independent driver. Look for version 5.1.49 if you use MySQL 5.7 (Please use the latest MySQL JDBC 8.0.33 driver for WHD version 12.7.13 up to the latest if you use MySQL 8).
  5. Unzip the file to a local directory.
  6. Copy the JDBC driver to the appropriate directory on your server specified below for its respective operating system.


Please note:

For version 8.0.19 and above of the JDBC driver:

The allowable versions of TLS protocol used for connecting to the server, when no restrictions have been set using the connection properties enabledTLSProtocols, have been changed to:

 

  • TLSv1, TLSv1.1, TLSv1.2, and TLSv1.3 for MySQL Community Servers 8.0, 5.7.28 and later, and 5.6.46 and later, and for all commercial versions of MySQL servers.
  • TLSv1 and TLSv1.1 for all other versions of MySQL servers.

For version 5.1.49 of the JDBC driver:

The allowable versions of TLS protocol used for connecting to the server, when no restrictions have been set using the connection properties enabledTLSProtocols, have been changed to:

  • TLSv1, TLSv1.1, and TLSv1.2 for MySQL Community servers 8.0, 5.7.28 and later, and 5.6.46 and later, and for commercial versions of MySQL Server 5.6, 5.7, and 8.0.
  • TLSv1 and TLSv1.1 for all other versions of MySQL servers.
See release notes of the MySQL JDBC drivers:

​​​​​​​5.1.49

8.0.19

8.0.33

Version 12.6 and lower

Operating SystemPath
Windows Server\Program Files\WebHelpDesk\bin\jre\lib\ext
macOS/Library/Java/Extensions
Linux/usr/local/webhelpdesk/bin/jre/lib/ext


Version 12.7 and higher

Operating SystemPath
Windows Server\Program Files\WebHelpDesk\bin\webapps\helpdesk\WEB-INF\lib
macOS/Library/WebHelpDesk/bin/webapps/helpdesk/WEB-INF/lib
Linux/usr/local/webhelpdesk/bin/webapps/helpdesk/WEB-INF/lib
  1. Restart the Web Help Desk service

=====================
 
If MSSQL is used, make sure to verify that the MSSQL service is running.
  1. Verify the configured port used by the MSSQL server, typically 1433. Some installations use dynamic ports, and they should use a static port instead, generally port 1433.
  2. Ensure that the firewall does not block the port
  3. If the service is not started, restart it through services.msc
  4. If the MSSQL service is started, restart the Web Help Desk service and see if it connects
  5. If the MSSQL service does not want to start, reboot the server.
  6. After rebooting the server, wait for about 3 minutes for the MSSQL service to settle.
  7. Restart the WHD service.
  8. If the MSSQL service does not start after a reboot, troubleshoot the issue with your database administrator.
Disclaimer: Please note, any content posted herein is provided as a suggestion or recommendation to you for your internal use. This is not part of the SolarWinds software or documentation that you purchased from SolarWinds, and the information set forth herein may come from third parties. Your organization should internally review and assess to what extent, if any, such custom scripts or recommendations will be incorporated into your environment.  You elect to use third party content at your own risk, and you will be solely responsible for the incorporation of the same, if any.