Option | Description | Type | Example |
user |
The MySQL login ID. This property is required unless the auth-part of the URL was used | String | user=root |
password |
The password for user. This property is required unless the auth-part of the URL was used | String | password=swordfish |
connect-timeout |
Connect timeout in seconds. Default is 3 seconds. It is a checked error to use a value equal to or less than 0 | Integer | connect-timeout=5 |
compress |
Use the compressed client/server protocol. Default is false | Boolean (true/false) | compress=true |
use-ssl |
Used for establishing secure connections using SSL. OpenSSL support must be enabled/linked in the client library. Default is false | Boolean (true/false) | use-ssl=true |
charset |
Use this character set when communicating with the server. MySQL charsets, e.g. "utf8" or "latin1" | String | charset=utf8 |
secure-auth |
Whether to connect to a server that does not support the password hashing used in MySQL 4.1.1 and later. Default is false | Boolean (true/false) | secure-auth=true |
unix-socket |
Specifies the socket that should be used. The default is /tmp/mysql.sock. Note that the URL host value determines the type of the connection. If host is the string "localhost", a connection to the local host over a unix socket is assumed, otherwise TCP/IP is used. | String | unix-socket=/var/tmp/mysql.sock |
Copyright © 2008 Tildeslash Ltd. All rights reserved.