请问你知道是为什么了吗,我6.4的es也出现了这样的问题,就是连接不到数据库。
mysql是5.7的,es是6.4的,用6.0.3的驱动就报这个错误java.sql.SQLNonTransientConnectionException: Could not create connection to database server.;
用5.1.46的驱动就会报[
2018-10-09T1437,121][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [] fatal error in thread [elasticsearch[_D8Tp9M][generic][T#1]], exiting
java.lang.ExceptionInInitializerError: null
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_181]
at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_181]
2 个回复
zz_hello
赞同来自:
mysql是5.7的,es是6.4的,用6.0.3的驱动就报这个错误java.sql.SQLNonTransientConnectionException: Could not create connection to database server.;
用5.1.46的驱动就会报[
2018-10-09T1437,121][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [] fatal error in thread [elasticsearch[_D8Tp9M][generic][T#1]], exiting
java.lang.ExceptionInInitializerError: null
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_181]
at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_181]
zz_hello
赞同来自:
https://blog.csdn.net/u0112628 ... 36044
https://blog.csdn.net/wuzhiwei ... sedit