Config 1.3: Database Access

Parameters to access database are defined in array object Db, which depends on the programming language.

Db              ["mysql", "dbuser:dbpass@/dbname"]

The above example is for accessing MySQL database dbname using account name dbuser and password dbpass in GO. 

To access the same database in Perl, use

 "Db": ["DBI:mysql:dbname", "dbuser", "dbpass"]

and in Php, use

 "Db": ["mysql:dbname=dbname", "dbuser", "dbpass"]

Comments are closed.