mysql-connection.properties 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # MYSQL JDBC Connection properties
  2. # http://dev.mysql.com/doc/refman/5.5/en/connector-j-reference-configuration-properties.html
  3. jdbcCompliantTruncation=false
  4. autoReconnect=false
  5. zeroDateTimeBehavior=convertToNull
  6. # disable unicode handling
  7. useUnicode=false
  8. # Get rid of SQL exceptions thrown in Mysql jdbc driver
  9. holdResultsOpenOverStatementClose=true
  10. # charset
  11. #useUnicode=true
  12. #characterEncoding=Cp1252
  13. #dumpQueriesOnException=true
  14. dontTrackOpenResources=true
  15. #useCompression=true
  16. #tcpRcvBuf=262144
  17. #tcpSndBuf=262144
  18. # setAutocommit / setIsolationLevel optimizations
  19. useLocalSessionState=true
  20. useLocalTransactionState=true
  21. elideSetAutoCommits=true
  22. alwaysSendSetIsolation=false
  23. relaxAutoCommit=true
  24. # metadata caching
  25. cacheServerConfiguration=true
  26. cacheResultSetMetadata=true
  27. metadataCacheSize=100
  28. # enable MySQL query cache - server prep stmts wont use caching
  29. useServerPrepStmts=false
  30. # prepared statement caching on JDBC client
  31. cachePrepStmts=false
  32. cacheCallableStmts=false
  33. prepStmtCacheSize=4096
  34. prepStmtCacheSqlLimit=32000
  35. # log slow queries
  36. #logSlowQueries=true
  37. #slowQueryThresholdMillis=2000
  38. noDatetimeStringSync=true
  39. enableQueryTimeouts=false
  40. traceProtocol=false
  41. useUnbufferedInput=true
  42. useReadAheadInput=true
  43. maintainTimeStats=false
  44. # timeouts for TCP/IP
  45. connectTimeout=15000
  46. socketTimeout=120000
  47. # enable batch mode
  48. rewriteBatchedStatements=true