Why can't I connect to MySQL 8.0 database?

JConstantine September 9, 2020

When I'm trying to connect to MySQL 8.0 database I get this error in Jira Configuration Tool:

Attempting to connect to the MySQL 5.7+ database server...
Could not connect to the DB: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

What might be the problem here?

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 9, 2020

Your database is not running on the server you are trying to connect to, or there is a network problem between your Jira server and the database server.

JConstantine September 9, 2020

The database is running. I can connect to my server on localhost, but now I'm trying to connect to the server that's located on the other machine of the domain.

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 9, 2020

So there is a networking issue.  Check that you're not firewalling it off, and that the server is configured to allow connections from the remote machine.

JConstantine September 9, 2020

Looks like the I have the old version of MySQL Connector. It's mysql-connector-java-5.1.48-bin.jar.  I'll try updating it.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events