Displaying 4 results from an estimated 4 matches for "database_username".
2006 Jul 31
4
switching database dynamically based on incoming request
...iroment variables set for the fcgid process in general]
In principle we could do the same for the database by adjusting
database.yml like so:
development:
adapter: mysql
database: <%= request.env[''DEV_DATABASE''] %>
host: localhost
username: <%= request.env[''DEV_DATABASE_USERNAME'']
password: <%= request.env[''DEV_DATABASE_PASSWORD'']
The idea being to have a virtual host config like:
<VirtualHost virtualhost1.us.com:80>
ServerName virtualhost1.us.com
SetEnv DEV_DATABASE virtualhost1
SetEnv DEV_DATABASE_USERNAME virtualhost1_username
SetEn...
2015 May 16
0
Asterisk "virtual hosting"
...PASSWORD = @DATABASE_PASSWORD@
DATABASE-PRODUCTION-SERVER = @DATABASE_PRODUCTION_SERVER@
DATABASE-REPORTING-SERVER = @DATABASE_REPORTING_SERVER@
DATABASE-ROOT-PASSWORD = @DATABASE_ROOT_PASSWORD@
DATABASE-USERNAME = @DATABASE_USERNAME@
and
#ifdef A11
exten = s,n, execif($[${ACCEPT-COUNTER} < 0]?hangup)
#else
exten = s,n, execif($[${ACCEPT-COUNTER} < 0],hangup)
#endif
--
Thanks in advance,
-------------------------------------------------------------------------
S...
2015 May 16
2
Asterisk "virtual hosting"
Hello,
I am in the peculiar situation to have to set up a PBX for two
independent sites, but operated by the same entity. Yes, I could set
up two VPSs and install Asterisk to each, put common stuff (e.g.
conferencing setup) into Git and share between both using includes,
but for various reasons (among them simplicity and cost), I'd prefer
a single Asterisk instance.
I know I can #include
2005 Jul 27
5
cdr_mysql does not write to mysql db
Hi,
I configured cdr_mysql (addons 1.0.9) to write the cdr records to the mysql db.
The problem is that no records are written to the db. Why?
I can import the csv-file to the db. so i assume the db is setup correct.
Is there any chance to get debug from cdr_mysql to find his problem?
This is my cdr_mysql.conf file:
[global]
hostname=localhost
dbname=cdr
password=passw0rd
user=root
;port=3306