luke2012 Well-Known Member Licensed User Longtime User Mar 7, 2018 #1 Hi All, I'm trying to configure RDC framework (by @Erel) to connect a MariaDB database server. The MariaDB database server is running within a machine with private IP (ex. 192.168.1.XX) I not sure that the jdbc configuration is ok (see belove): Code: Copy #Lines starting with '#' are comments. #Backslash character at the end of line means that the command continues in the next line. DriverClass=org.mariadb.jdbc.Driver JdbcUrl=jdbc:mariadb://192.168.1.XX/test?characterEncoding=utf8 So my target is to set RDC to connect to the remote database server (MariaDB). Thanks in advance for your help
Hi All, I'm trying to configure RDC framework (by @Erel) to connect a MariaDB database server. The MariaDB database server is running within a machine with private IP (ex. 192.168.1.XX) I not sure that the jdbc configuration is ok (see belove): Code: Copy #Lines starting with '#' are comments. #Backslash character at the end of line means that the command continues in the next line. DriverClass=org.mariadb.jdbc.Driver JdbcUrl=jdbc:mariadb://192.168.1.XX/test?characterEncoding=utf8 So my target is to set RDC to connect to the remote database server (MariaDB). Thanks in advance for your help
Erel B4X founder Staff member Licensed User Longtime User Mar 7, 2018 #2 Why are you using RDC instead of jRDC2? Upvote 0
luke2012 Well-Known Member Licensed User Longtime User Mar 7, 2018 #3 Erel said: Why are you using RDC instead of jRDC2? Click to expand... Good question So I you suggesting me to use jRDC2 that is better? Upvote 0
Erel said: Why are you using RDC instead of jRDC2? Click to expand... Good question So I you suggesting me to use jRDC2 that is better?
Erel B4X founder Staff member Licensed User Longtime User Mar 7, 2018 #4 You should never start a new project based on an old version of a key component... Upvote 0
Alexander Stolte Expert Licensed User Longtime User Mar 7, 2018 #5 jRDC2 is newer then the old RDC. It is recommended to use this and it is also worthwhile from the speed. Upvote 0
jRDC2 is newer then the old RDC. It is recommended to use this and it is also worthwhile from the speed.
luke2012 Well-Known Member Licensed User Longtime User Mar 7, 2018 #6 Erel said: Why are you using RDC instead of jRDC2? Click to expand... So assuming to use JRDC2 (https://goo.gl/EbV8rr), I think that the jdbc configuration is the same as old RDC framework correct? Code: Copy #Lines starting with '#' are comments. #Backslash character at the end of line means that the command continues in the next line. DriverClass=org.mariadb.jdbc.Driver JdbcUrl=jdbc:mariadb://192.168.1.XX/test?characterEncoding=utf8 Upvote 0
Erel said: Why are you using RDC instead of jRDC2? Click to expand... So assuming to use JRDC2 (https://goo.gl/EbV8rr), I think that the jdbc configuration is the same as old RDC framework correct? Code: Copy #Lines starting with '#' are comments. #Backslash character at the end of line means that the command continues in the next line. DriverClass=org.mariadb.jdbc.Driver JdbcUrl=jdbc:mariadb://192.168.1.XX/test?characterEncoding=utf8
DonManfred Expert Licensed User Longtime User Mar 7, 2018 #7 luke2012 said: JdbcUrl=jdbc:mariadb://192.168.1.XX/test?characterEncoding=utf8 Click to expand... mariadb:// ??? Try http:// Upvote 0
luke2012 said: JdbcUrl=jdbc:mariadb://192.168.1.XX/test?characterEncoding=utf8 Click to expand... mariadb:// ??? Try http://
Alexander Stolte Expert Licensed User Longtime User Mar 7, 2018 #8 luke2012 said: same as old RDC framework correct? Click to expand... from the 2 lines you post, yes. Upvote 0
Alexander Stolte Expert Licensed User Longtime User Mar 7, 2018 #9 DonManfred said: mariadb:// ??? Try http:// Click to expand... both works don. in my jRDC's i use this: Code: Copy JdbcUrl=jdbc:mysql://localhost/myDatabase?characterEncoding=utf8&useSSL=false&useUnicode=true Upvote 0
DonManfred said: mariadb:// ??? Try http:// Click to expand... both works don. in my jRDC's i use this: Code: Copy JdbcUrl=jdbc:mysql://localhost/myDatabase?characterEncoding=utf8&useSSL=false&useUnicode=true
luke2012 Well-Known Member Licensed User Longtime User Mar 7, 2018 #10 Alexander Stolte said: both works don. in my jRDC's i use this: Code: Copy JdbcUrl=jdbc:mysql://localhost/myDatabase?characterEncoding=utf8&useSSL=false&useUnicode=true Click to expand... The db server is a MariaDB version. So I suppose that the JdbcUrl should be a "jdbc:mariadb..." instead of "jdbc:mysql...". Correct ? Upvote 0
Alexander Stolte said: both works don. in my jRDC's i use this: Code: Copy JdbcUrl=jdbc:mysql://localhost/myDatabase?characterEncoding=utf8&useSSL=false&useUnicode=true Click to expand... The db server is a MariaDB version. So I suppose that the JdbcUrl should be a "jdbc:mariadb..." instead of "jdbc:mysql...". Correct ?
OliverA Expert Licensed User Longtime User Mar 7, 2018 #11 According to (https://mariadb.com/kb/en/library/about-mariadb-connector-j/), yes. What happened to just trying? It would have either worked or failed, but in either cases something would have been learned. Upvote 0
According to (https://mariadb.com/kb/en/library/about-mariadb-connector-j/), yes. What happened to just trying? It would have either worked or failed, but in either cases something would have been learned.
luke2012 Well-Known Member Licensed User Longtime User Mar 7, 2018 #12 All Done! I did the jRDC2 setup: RemoteServer is running (03/07/2018 16:53:19) Error fetching connection. Within the b4j log I read an error: Code: Copy java.sql.SQLException: Host 'DESKTOP-ICOQJHD.fritz.box' is not allowed to connect to this MariaDB server Why this? It seem that the MariaDB Server has an internal security that block the machine that called the test handler (http://localhost:17178/test)... Note that the MariaDB server and jRDC server are running on different VMs (and IPs). Last edited: Mar 7, 2018 Upvote 0
All Done! I did the jRDC2 setup: RemoteServer is running (03/07/2018 16:53:19) Error fetching connection. Within the b4j log I read an error: Code: Copy java.sql.SQLException: Host 'DESKTOP-ICOQJHD.fritz.box' is not allowed to connect to this MariaDB server Why this? It seem that the MariaDB Server has an internal security that block the machine that called the test handler (http://localhost:17178/test)... Note that the MariaDB server and jRDC server are running on different VMs (and IPs).
OliverA Expert Licensed User Longtime User Mar 7, 2018 #13 MySQL, and most likely MariaDB, are configured initially to only accept access from the same server and block all outside access. Google is your friend in this case. Make sure your user is also set up to allow log ins from outside the server that the db is running on. Upvote 0
MySQL, and most likely MariaDB, are configured initially to only accept access from the same server and block all outside access. Google is your friend in this case. Make sure your user is also set up to allow log ins from outside the server that the db is running on.