presto 配置mysql.properties异常Database (catalog) must not be specified in JDBC URL for MySQL connector

在presto 0.210 以后配置mysql.properties的时候,对于jdbc-url属性配置后面要加上对应要链接的database connection-url=jdbc:mysql://127.0.0.1:3306/presto_test 

但是在0.210之前的版本如果加上这个就会抛出异常 Caused by: java.lang.IllegalArgumentException: Database (catalog) must not be specified in JDBC URL for MySQL connector  

如图:

 当使用的presto版本低于0.210以下的需要把connection-url=jdbc:mysql://127.0.0.1:3306/presto_test 后面的database去掉即是不要presto_test改为connection-url=jdbc:mysql://127.0.0.1:3306 即可

猜你喜欢

转载自www.cnblogs.com/xjh713/p/9667654.html