IBM Support

Error: Could not connect to: 'jdbc:mysql://192.168.0.1:3306/db_name?autoReconnect=true' when attempting to create a MySQL DataSource without an SSL Connection

Troubleshooting


Problem

When attempting to test connection after creating a datasource definition in Guardium, an error like the one described in https://www-01.ibm.com/support/docview.wss?uid=swg21685610 appears, but without the SqlState message.

Sample error message:

Could not connect to: 'jdbc:mysql://192.168.0.1:3306/db_name?autoReconnect=true' for user: 'test_conn_MYSQL(Access Policy)'. DataSourceConnectException: Could not connect to: 'MYSQL test_db 192.168.0.1:3306' for user: 'guardium'. Exception: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSMPHH","label":"IBM Security Guardium"},"Component":"","Platform":[{"code":"PF016","label":"Linux"}],"Version":"9.5;10.1.x;10.5","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

More support for:
IBM Security Guardium

Software version:
9.5, 10.1.x, 10.5

Operating system(s):
Linux

Document number:
738199

Modified date:
01 November 2018

UID

ibm10738199

Manage My Notification Subscriptions