"The driver 'com.mysql.jdbc.Driver' for 'XXX' database cannot be found!" error when attempting to add a database to vRO
search cancel

"The driver 'com.mysql.jdbc.Driver' for 'XXX' database cannot be found!" error when attempting to add a database to vRO

book

Article ID: 326001

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

Symptoms:
  • Workflows against databases fail with a similar error to the one below:
java.lang.IllegalArgumentException: The driver 'com.mysql.jdbc.Driver' for 'MySQL' database cannot be found! (Dynamic Script Module name : addDatabase#9


Environment

VMware vRealize Orchestrator 8.x

Cause

This issue occurs when vRO is unable to detect the relevant jdbc driver for the database in question.

Resolution

Before proceeding best practise dictates you first backup the vRO appliances
  1. Download the required driver from the vendor website.
  2. SSH to each of the vRO appliances.
  3. Change directory to: /data/vco/var/run/vco
  4. Run the following command to create a new directory:
mkdir -p plugins/SQL/lib
  1. Place the driver into the newly created directory:
/data/vco/var/run/vco/plugins/SQL/lib
  1. Open the vRO Control Center.
  2. Go to System Properties.
  3. Add a new property with the following details (replace <name_of_driver> with the correct name):
key = o11n.plugin.SQL.classpath
value = /var/run/vco/plugins/SQL/lib/<name_of_driver>.jar
  1. Save changes and wait for the server to restart.


Additional Information

Impact/Risks:
Note: In a clustered environment the steps below will need to be performed on each node.