Copy link to clipboard
Copied
Cant connect Adobe Admin Panel my MariaDB.
i have to connect to an external Database. its a MariaDB 11.4.4. Version
i only have in the admin to select :
How i can connect to MariaDB 11.4.4
Where i can find the KDBC Connector to download. on MariaDB Site i cant find a .JAR file like Mysql....
Who can help me?
Kindly Regards
Thorsten
I have Coldfusion 2016 , Ubuntu 18
Copy link to clipboard
Copied
There's more than one way to get cf to talk to a db, including Maria, (whether via driver settings in the cf admin or at the app level, and different ways to implement the jar for such a driver not built into CF). But as you're asking about the admin:
Let us know how it goes. These are steps off the top of my head and pulling together some resources I looked up. If I have any mistake, I'll gladly correct it.
For those who may want to setup an app-level dsn instead, there are cf docs and other resources on that. But here is one specifically on doing that for Maria.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Do you see the option on the right for "product" defaulting to "c connector". Change that to pick the one for "Java 8+", which will work for your cf version and later (there's no option that says "jdbc", but this is what you want). That will show that what you'll get is the needed jar.
Copy link to clipboard
Copied
It looks like @Charlie Arehart responded correctly before I even had a chance to read your question! But I think you can probably just use the MySQL driver, as the client protocol is the same between MySQL and MariaDB.
Copy link to clipboard
Copied
Yep, Dave, perhaps. (And thanks for the kind regards.)
As for using cf's provided mysql dsn driver choices, note that one of them works only with a licensed mysql, and the other requires you to implement the mysql connector/jar yourself--it's not included with CF (though at least it doesn't require using the "other" driver).
Just clarifying for future readers who may find this. Indeed, I spelled out the details for what Thorsten asked because I didn't find any resource online that did. (Others talked about using app level settings for a Maria dsn,or they discussed the "other" driver option without detailing Maria).
But you're right that someone may find they could just implement the mysql jar and then use the mysql driver option in the admin. I did start my first reply acknowledging that there are many ways to do such things. 🙂
Copy link to clipboard
Copied
@Thorsten27751974bpgq , I have the same suggestion as Dave: for MariaDB you can use the MySQL driver.
However, there is bad news. Before you proceed any further, be aware that what you are trying to achieve may not be possible. The reason is as follows.
Your ColdFusion version is 2016. Its highest Java version was Java 11. Both of these are too old when compared with MariaDB v11.4.4, which was released in November 2024. That is, it is very likely that MariaDB 11.4.4 is incompatible with ColdFusion 2016.
Now, on to the good news. It is possible to solve the problem. You can do so, for example, by combining the following compatible technologies:
Copy link to clipboard
Copied
Bkbk, note that while cf2016 came out on Java 8, that's not the "highest" it can run. It was modified to allow moving to Java 11, per that cf2016 update 8. It can be hard to keep track and FWIW, I keep updated a post offering table of what cf versions support what Java versions.
That said, I'm not proposing to you Thorsten that you should update to Java 11. You could, of course, but Java 8 IS in fact still updated by Oracle. And I do a blog post confirming that each time Java is updated (quarterly), at carehart.org/blog.
Finally, I'll repeat that the original answer I offered does not require changing Java versions. BKBK's point here is addressing Dave's idea of using the mysql connector/j driver.
All that said, we've all held off saying something I know we'd all agree on: you're walking on thin ice running cf2016, which hasn't gotten updates since 2021 (including for critical cf security vulns). Note that if you may be open to considering that there's a special discount to get it at 25% off, for those on cf2018 and earlier, until the ending this month. It's not offered by Adobe but a reseller. More in a post I did, here.
But either way, do let us know if you get to running with Maria. It should work with any of these options.
Copy link to clipboard
Copied
Thanks, Charlie, for your remark on Java 11's introduction to ColdFusion 2016 from Update 8 onwards. I am aware of that, but there was an oversight during typing.
I have duly modified the relevant bulleted point to: "ColdFusion 2016 running on Java 8, alternatively, ColdFusion 2016 Update 8 or above running on Java 11;"
Copy link to clipboard
Copied
@Thorsten27751974bpgq, any ultimate resolution?