MySQL Connector/J 5.1发行说明
这个使用配置
连接选项是为特定场景指定选项组合的方便速记。可用于此选项的参数值对应于.属性
连接器中的文件/Jmysql连接器java-
JAR文件。例如,Connector/J 5.1.9驱动程序包含以下配置属性文件:版本
-bin.jar文件
$unzip mysql-connector-java-5.1.19-bin.jar'*/configs/*'存档:mysql-connector-java-5.1.19-bin.jar创建:com/mysql/jdbc/configs/inflating:com/mysql/jdbc/configs/3-0-Compat.properties inflating:com/mysql/jdbc/configs/5-0-Compat.properties inflating:com/mysql/jdbc/configs/clusterBase.properties inflating:com/mysql/jdbc/configs/coldFusion.properties膨胀:com/mysql/jdbc/configs/fullDebug.properties膨胀:com/mysql/jdbc/configs/maxPerformance.properties膨胀:com/mysql/jdbc/configs/solarisMaxPerformance.properties
要指定这些选项组合之一,请指定使用配置=3-0-Compat
,useConfigs=最大性能
,等等。以下各节显示了每个选项的一部分使用配置
设置。有关每一项的详细信息,请参阅中的注释.属性
文件夹。
3-0-兼容
emptyStringsConvertToZero=true jdbcCompliantTruncation=false NodeTimeStringSync=true nullCatalogMeansCurrent=true nullNamePatternMatchesAll=true transformedBitIsBoolean=false dontTrackOpenResources=true zeroDateTimeBehavior=ConvertToFull useServerPrepStmts=false AutoClosePSTstreams=true processEscapeCodesForPrepStmts=falseuseFastDateParsing=false populateInsertRowWithDefaultValues=false useDirectRowUnpack=false
5-0-兼容
useDirectRowUnpack=假
簇基
autoReconnect=true failOverReadOnly=false roundRobinLoadBalance=true
冷融
useDynamicCharsetInfo=false alwaysSendSetIsolation=false useLocalSessionState=true autoReconnect=true
完全调试
profileSQL=true gatherPerfMetrics=true useUsageAdvisor=true logslowquerys=true explainslowquerys=true
最大性能
cachePrepStmts=true cacheCallableStmts=true cacheServerConfiguration=true useLocalSessionState=true elideSetAutoCommits=true alwaysSendSetIsolation=false enableQueryTimeouts=false
太阳能最大性能
useUnbufferedInput=false用户eadaheadInput=false维护时间状态=false