「 DATABASE 」 十一月 14, 2021
是时候升级 MySQL Connector/J 到 8.0 了
文章字数 7.4k 阅读约需 7 mins.
使用 JDBC 连接 MySQL 时,你是否也对 JDBC URL 连接串中的参数感到很神秘?
例如:
jdbc:mysql://localhost:3306/hinex?useSSL=false&serverTimezone=UTC
连接串的通用格式为:
protocol//[hosts][/database][?properties]
那么可用的 properties 都有哪些?默认值和可用的值都有什么,又都是什么含义呢?
这就要从 Connector/J 说起了。