|
Home Resources Products
Developers |
Main • Mysqldb
This module is used to make the connection between yate and a MySQL database. Example of the configuration file (mysqldb.conf): [general] ; This section is special - holds settings common to all connections ; priority: int: Handler priority ;priority=100 ; 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 ; 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 ;this is where we create a new connection to a MySQL database ;there can be multiple connections to different databases ;the name written between [] will be used in other configuration files to mark the account used ;Example: in register.conf in the [general] section: account=yatetest [yatetest] database=yate user=mysql password=yate |
3 May 2010: 8 March 2010: 6-7 February 2010: 2 Nov 2009: 6 Aug 2008: 4 Aug 2008: 10 Jul 2008: Feb 2008: 21 Jan 2008: 3 September: 14 August: 16 April: 25 September: 25 September: 11 July 2006: 10 July 2006: June 1st 2006: |