Hi, have you checked your firewall settings? What happens when you try to connect with another mysql client from the same machine? Are you able to connect to it?
It really can be a lot of things. If it isn’t the firewall, maybe your mysqld is bound to an ip-address within the my.cnf? And the datasource you are creating inside lucess server administrator is trying to connect to your external IP-Address? To check open a terminal and do a:
sudo ss -ltnp|grep mysql.
What response do you see? 127.0.0.1:3306
or 0.0.0.0:3306
or your externalIP:3306 ?
In addition, my current mysql configuration seems empty, both the my.cnf and mysql.cnf file under /etc/mysql directory has the following content in addition to multiple lines of comments:
These two directories seem to have been excluded. In the meantime, the /etc/mysql/mysql.conf.d/ directory seems to have a meaningful configuration file such as
bind-address = 127.0.0.1
For the data source setup, I tried “localhost” and “127.0.0.1” respectively for “host/server” to no avail.
What else could I try?
Thanks.
I am running Ubuntu 18.04 LTS in a couple of places, MySQL 8, Lucee 5.x.x.x and over Tomcat and Apache. If any of my settings can help, I am happy to share.
Also, if you running Tomcat, make sure that you give the WEB-INF folder to tomcat (chown -R tomcat:tomcat).
I’ve also included a MySQL 8.0.18 driver which I recently put together with a lot of help from other people here. You are welcome to use (add through Lucee admin). This community has been very helpful, if I can give back, happy to.
I really can’t say, because I am totally new to linux. I come from windows and I am learing about Linux/Ubuntu thankfully/gratefully motivated by some users of this forum. I still didn’t get to this point because I am still on phase of experimenting/hardening/finding the best configuration that works for me on a VPS. But upgrading is on my checklist just like desasterrecovery & backup. But I think that is not very different than on windows because its JAVA: it should only be a backup and a jar-file replacement.
I have never used MariaDB but I consider myself reasonably good at relational dbms. Found the following info about it. MariaDB Server is one of the most popular open source relational databases. It’s made by the original developers of MySQL and guaranteed to stay open source. **
We have a centOS Linux version 7 box. Would the latest Lucee docker image have a driver for MariaDB for this OS?
If the above 2) is true, in the future if we need to export MariaDB to other dbms such as MS SQL Server, would that be doable? If so, how easy or how difficult it might be?
MariaDB is a fork of MySQL and was built by the creators of MySQL before selling it to Sun Microsystems. It was built to ensue a drop-in replacement capability with MySQL (comparable with Lucee/Railo in relation to Adobe CF). When I switched in 2012 it was pretty easy, because everything worked all alike. At that time I felt like I was using MySQL, but with a different name. Not only the engines are alike, also the config files/directives, SQL, use of HeidiSQL worked all the same. You can export import DBases with mysqldump from one to the other. So the drivers you use are the mysql-drivers. Switching to MS SQL should be pretty the same like switching from MySQL.
If you experiencing problems with MySQL you’ll probably have the same issues with MariaDB. especially when you are using old software/drivers. Better check that first.