Open lipinskipawel opened 4 years ago
Ah, yes, msql-srv
(which provides the MySQL interface) does not currently support the SSL handshake, and thus only supports non-encrypted connections. If the Java library requires a secure connection ("CLIENT_SECURE_CONNECTION is required"), and that can't be disabled, then the way forward would be to add SSL support to msql-srv
. Adding it shouldn't be too difficult, though I don't personally have the bandwidth to do so at the moment. If you want to take a stab at writing a PR, I'd be happy to take a look! See also https://github.com/jonhoo/msql-srv/issues/10 which also has some Java-related problems.
Hey! I was trying to run Java application with Noria but I got an exception
Steps to reproduce:
cargo r --release --bin noria-server -- --deployment myapp --no-reuse --shards 0
)cargo run --release -- --deployment myapp -z 127.0.0.1:2181
)mysql -h 127.0.0.1
CREATE TABLE Cats (id int, name VARCHAR(255), PRIMARY KEY(id));
,INSERT INTO Cats (id, name) VALUES (1, "bob");
)Some java app example
main method ``` Class.forName("com.mysql.cj.jdbc.Driver"); final String name = DriverManager .getConnection("jdbc:mysql://127.0.0.1/") .prepareStatement("select * from Cats") .executeQuery() .getString("name"); System.out.println(name); ``` pom.xml ```My questions:
noria-mysql
adapter through the Java code?noria-mysql
? (besidesmysql -h 127.0.0.1
nothing is working for me)