What is the version of your MySQL Connector/J driver? Let's begin by ruling this out. Is it a recent version?
Assuming the driver is a recent one, then the cause of the problem might indeed be Java-related. Here then are some suggestions, in order of importance:
- As from Java 11.0.11, TLS 1.0 and TLS 1.1 are disabled by default. So, add the following flags to JVM arguments:
-Djdk.tls.client.protocols=TLSv1.3,TLSv1.2
-Dhttps.protocols=TLSv1.3,TLSv1.2
After that, open the ColdFusion Administrator, and go to the datasources page. For each MySQL datasource, click the edit-button. Then click on Show Advanced Settings. In the Connection String input field, enter
enabledTLSProtocols=TLSv1.2
and press the Submit button. Restart ColdFusion and see if that helps.
- Compare in a text editor the contents of \cfusion\bin\jvm.config and \cfusion\bin\jvm.bak. If there is a difference, please share it with the forum. It could be a clue.
- Open \cfusion\runtime\conf\server.xml in a text editor. Does any of the elements have an attribute of the form address="::1"? If so, delete the address attribute, restart ColdFusion and see if that helps.
4. Add
-Djava.net.preferIPv4Stack=true
to the JVM arguments, restart ColdFusion and see if it helps.
I hope one or more of the above helps. If not, try some of the suggestions in this Stackoverflow page.