'com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException' when Installing Confluence on MySQL on OS X 10.4 Due to MySQL Networking Configuration
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
Confluence does not start when connecting to MySQL. The following appears in the atlassian-confluence.log
:
com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Server connection failure during transaction. Due to underlying exception: 'java.net.ConnectException: Connection refused'.
Cause
MySQL is running with the --skip-networking option.
Resolution
On OS X 10.4 Server, the MySQL Manager program turns off networking by default. This needs to be turned on in /etc/mysqlManager.plist
or in the MySQL Manager (if that option is available).
Was this helpful?