我使用MySQL 5.7作为蜂巢转移瘤。通常,我的连接字符串如下所示
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:mysql://localhost/metastore?createDatabaseIfNotExist=true但我会跟着错误走。
Thu Nov 16 20:12:28 IST 2017 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.org.apache.thrift.transport.TTransportException:无法在地址0.0.0.0/0.0.0.0:9083上创建ServerSocket。
。那么,有人能告诉我如何在mysql连接字符串中传递SSl参数吗?或者其他我能解决的方法?
发布于 2021-12-07 11:52:53
只需将useSSL=false添加到连接字符串:
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:mysql://localhost/metastore?createDatabaseIfNotExist=true&useSSL=false</value>https://stackoverflow.com/questions/47332700
复制相似问题