---
title: "Cannot connect to database when creating history chart / graphs"
description: "Cannot connect to the database when creating history charts due to version, access, or missing files. Verify database library, test network connection, and add MySQL JDBC jar if needed to resolve issues."
url: "https://docs.itrsgroup.com/docs/faq/geneos/4406804237841-geneos-cannot-connect-to-database-when-creating-history-chart-graphs/index.html"
---
## Related topics

History Chart, Historical graphs, Active Console, Database, graphs not working

### Problem

- You cannot connect to the database when creating a history chart.

![Failed database connection](https://docscdn.itrsgroup.com/faq/images/geneos/failed-database-connection.png)

### Possible causes

- Root Cause 1 - Active Console version may be outdated or does not include the library for the particular database
- Root Cause 2 - The database is not accessible from your Active Console workstation.
- Root Cause 3 - MySQL JDBC jar file is missing. If you are using MySQL for DB logging, you need to download the MySQL from their website.

### Possible solutions

- Solution to Root Cause 1 - User can go to the **Help > About** menu, and scroll down to locate the **Database support** section. Please check that the respective database library is available.

![Active Console Database Support](https://docscdn.itrsgroup.com/faq/images/geneos/active-console-database-support.png)

Most databases are set up to be secured and only accessible from certain hosts like the Gateway host or server. Check with your network and database team if connections can be permitted from your workstation to the database.

- Solution to Root Cause 2 - A quick way to check if to perform a connection test via telnet or cURL or PowerShell's Test-NetConnection from your Active Console workstation to the database's host and port.

Below sample commands show successful connection from a workstation to the database's host and port.

- telnet

```
C:\WINDOWS\system32>**echo quit | telnet 192.168.101.43 3306**
Welcome to Microsoft Telnet Client
Escape Character is 'CTRL+]'
C:\WINDOWS\system32>
```

- cURL

```
C:\WINDOWS\system32>**curl -v 192.168.101.43:3306**
- Rebuilt URL to: 192.168.101.43:3306/
- Trying 192.168.101.43...
- TCP_NODELAY set
- Connected to 192.168.101.43 (192.168.101.43) port 3306 (#0)
```

- PowerShell Test-NetConnection

```
PS C:\WINDOWS\system32> **Test-NetConnection -ComputerName 192.168.101.43 -Port 3306**
ComputerName : 192.168.101.43
RemoteAddress : 192.168.101.43
RemotePort : 3306
InterfaceAlias : Ethernet 4
SourceAddress : 192.168.200.1
TcpTestSucceeded : True
```

- Solution to Root Cause 3 - You need to download the MySQL JDBC jar and place it under `...\geneos-desktop-activeconsole-6.2.0-windows-x64\jars\JDBC` then restart Active Console.

## Related articles

- [What is a History Chart and how does it work?](https://support.itrsgroup.com/hc/en-us/articles/115004020905)
- [Create history charts](https://docs.itrsgroup.com/docs/geneos/current/visualization/active-dashboard/dashboard-charts-and-widgets/index.html#create-history-charts)
- [When history chart is not working](https://docs.itrsgroup.com/docs/geneos/current/visualization/active-dashboard/dashboard-charts-and-widgets/index.html#when-history-chart-is-not-working)


