JDBC URL parameter description

xiaoxiao2021-03-06  46

JDBC URL Parameter Description URL Format: JDBC: MySQL: // [Hostname] [: Port] / DBNAME [? param1 = value1] [m2 = value2] ... Parameter name Value default USER Database User Name No password database User Password No Autoreconnect When the database connection is lost, it is automatically connected. True / false false maxReconnects If autoreconnect is true, this parameter is re-test, and the default is 3 INITIALTIMEOTIMEOTITITIMEOTIALTIMEOTIALTITIMEOTIALTITITITITITILTIMEOTIALTITILETITIALTIMEOTIALTIMEOUT If Autoreconnect is True, this parameter is before reconnection Waiting for the number of seconds number 2 maxRows Set the number of rows returned when the query is set, 0 means all 0 UseUnicode uses Unicode output, true / false false characterencoding If Useunicode, this parameter makes an Encoding type, it is recommended to use the 8859_1 No prompt to use Useunicode, characterencoding, can Solving Chinese issues in database output, such as: jdbc: mysql: // localhost / test? User = root & useunicode = true; characterencoding = 8859_1

转载请注明原文地址:https://www.9cbs.com/read-84124.html

New Post(0)