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 即可

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM