gusjohnson: thanks and as you can see from my previous reply, I’ve managed to establish the appropriate edit procedure but it isn’t helping - but I keep trying…
Cannot open file:/opt/lucee/tomcat/lucee-server/context/security/cacerts [Keystore was tampered with, or password was incorrect]
This is really starting to frustrate me. In addition to my documented steps:
- deleted the data source from the Server Admin page
- created the data source from the Server Admin page without verification
- stopped the Lucee service
- edited the lucee-server.xml file and saved the file
- started the Lucee service
- from the Server Admin page, verified the data source
which have been startlingly unsuccessful in proving a working data source, I added a new first step (or 2) of completely uninstalling and re-installing Lucee 22.214.171.124. Everything is the same until step 6 where it can’t find server.cfm. When I check the folder where I edited lucee-server.xml, there is a new file lucee-server.1.buggy!
If I stop the lucee service and replace lucee-server.xml with an un-edited backup copy and then restart the lucee service, server.cfm returns. I’ve checked and re-checked my editing and it’s as per Beardsella’s example. I’ve just about run out of things to try and unless anyone has any useful suggestions, I’ll take my white cane and downgrade MySQL to 5.7.14 and see if that improves the situation.
Downgraded MySQL to 126.96.36.199, loaded my db, created a verified data source and my application works - all is right in the world…for now…
Just to add another perspective, this may be down to MySQL 8.x
I mention that, as I had similar problems connecting Visual Studio 2017 to MySQL 8.x yesterday. Specifically, after creating the “server explorer” database connection, I couldn’t create a data source AT ALL with MySQL 8.x. Tried to achieve same with SQL Server and it worked first time, hence is MySQL 8.x having issues and not Lucee? Perhaps its the new method of encrypted passwords? I don’t know.
Incidentally, I used a completely new install of Windows 10, installed Lucee for the first time, installed MySQL 8.x for the first time (new password format), attempted to create the database connection in Lucee and it brought up same error as the OP
When creating a new datasource for MySQL 8.x in Lucee, I tried the jTDS driver for MySQL and that at least gives a formal error - “Login failed for user xxxx”, instead of Cannot open file:/opt/lucee/tomcat/lucee-server/context/security/cacerts [Keystore was tampered with, or password was incorrect]
ADDITIONAL ADDITIONAL INFO (!)
Uninstall MySQL 8.x, installed MySQL 5.7.24
Went back to Lucee, created my MySQL data source and it works perfectly
Notes: Lucee MySQL driver 8.0.11, Lucee version 188.8.131.52