yate/conf.d/mysqldb.conf.sample

62 lines
2.0 KiB
Plaintext

[general]
; This section is special - holds settings common to all connections
; priority: int: Handler priority
;priority=100
; query_retry: integer: Retry query when error is returned by mysql query function
; Applicable for the following error(s):
; - ER_LOCK_DEADLOCK: Deadlock found when trying to get lock; try restarting transaction
; This parameter is applied on account creation. It not applied on reload
; This parameter can be overridden in account sections
; Allowed interval: 1..10
;query_retry=1
; Each other section in this file describes a database connection
;[default]
; The section name is used as the database connection name
; timeout: int: Query timeout in milliseconds - will be rounded to seconds
;timeout=10000
; initretry: int: Interval (in seconds) to retry creating failed connections. Setting it to 0 will disable retrying.
;initretry=10
; host: string: MySQL server to connect to, defaults to local
;host=
; port: int: Port on which the server is listening for connections
;port=0
; database: string: Name of the database to use in queries
;database=yate
; user: string: Username to use to access the database
;user=mysql
; password: string: Password to authenticate the user to the database server
;password=
; socket: string: UNIX socket to use for local connections
;socket=
; compress: bool: Enable use of compression protocol
;compress=disable
; encoding: string: Character set encoding used to communicate with the server
; If not set or empty will use the default for your system
; This setting is not available on older MySQL client libraries
;encoding=
; poolsize: int: Number of connections to establish for this account
; Minimum number of connections is 1
;poolsize=1
; warn_query_duration: integer: Warn if query duration (database query and result fetch)
; exceeds this value (in milliseconds)
; This parameter is applied on reload and can be overridden in query database message
; Minium allowed interval is 50
;warn_query_duration=0