Displaying 20 results from an estimated 31 matches for "db_name".
Did you mean:
d_name
2019 Dec 15
2
Parsing variables in config files
...ing so, but I need to have some domains on different
containers for specific reasons).
In order to keep it all clean, I want to use different PostgreSQL databases
for each container, and I'm running the container with an environment file
containing database parameters, such as:
DB_USER
DB_HOST
DB_NAME
I've been trying to pass these parameters to dovecot's configuration, but
they don't get parsed and I end up with messages like: dovecot: auth:
Error: pgsql(%{env:DB_HOST}): Connect failed to database %{env:DB_NAME}
I've tried to pass variables alone, using import_environment = DB_...
2008 Oct 29
1
Problem opening stub database for writing
I'm using Xapian 1.0.8 and the python bindings.
I have a flint database which I can open fine by doing the following:
db_name = '/path/to/db/db-name'
database = xapian.WritableDatabase(db_name, xapian.DB_OPEN)
However, if I have stub file at '/path/to/db/db-stub' containing the following:
flint /path/to/db/db-name
db_name = '/path/to/db/db-stub'
database = xapian.WritableDatabase(db_name, xapian...
2005 Jun 29
3
trouble with active record and sqlite
...#39;=>2).save, I get an error saying that id (my ''not null primary
key'') can''t be null. But isn''t active record supposed to deal with
setting that for me? Here''s the code that''s causing me trouble:
require ''active_record''
db_name = Time.new.strftime("db/xy-%M%S.sqlite")
# connect to the database (sqlite in this case)
ActiveRecord::Base.establish_connection( "adapter" => "sqlite3",
"dbfile" => db_name)
statement = "CREATE TABLE test...
2006 Mar 31
1
rails + svn automation script
Anyone got a script to share that:
1. Creates a trunk directory
2. Creates a trunk/vendor directory
3. Adds the above to svn
4. Modifies trunk/vendor to use a certain rails revision (i.e. trunk or 1.1)
5. Runs trunk/vendor/rails/.../bin/rails to generate a rails directory skeleton
6. Modifies the svn:ignore for the logs and config/database.yml
7. Moves config/database.yml to
2011 Jun 09
2
nginx + passenger + mongoid
When I set the rails_env to production in nginx.conf I get:
Error message:
db_name must be a string or symbol
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to ruby...
2005 Sep 13
1
populating asterisk realtime tables from configfiles
Here is my file to parse and load extensions. No wise cracks about my
code....
DB.php is the Pear DB module. (pear.php.net)
<?php
include('DB.php');
$db_host = '';
$db_name = '';
$db_login = '';
$db_pass = '';
$db_table = 'extensions_table';
define(DBINFO,"mysql://$db_login:$db_pass@$db_host/$db_name");
$db = DB::CONNECT(DBINFO);
if(!DB::isError($db)) {
//we got the db connection
$extensions = file('e...
2019 Dec 15
0
Parsing variables in config files
...on different
>containers for specific reasons).
>
>In order to keep it all clean, I want to use different PostgreSQL
>databases
>for each container, and I'm running the container with an environment
>file
>containing database parameters, such as:
>DB_USER
>DB_HOST
>DB_NAME
>I've been trying to pass these parameters to dovecot's configuration,
>but
>they don't get parsed and I end up with messages like: dovecot: auth:
>Error: pgsql(%{env:DB_HOST}): Connect failed to database %{env:DB_NAME}
>
>I've tried to pass variables alone, using...
2011 May 23
1
[Fwd: FW: extconfig.conf]
...riting a static dialplan with ; proper data abstraction via a tool like func_odbc.
>
so i have:
sipusers => engine, context, table_name
sippeers => engine, context, table_name
(tried both 'default' as 'general' as context value.
I previously tried:
sipusers => engine, db_name, table_name
sippeers => engine, db_name, table_name
but with same results....
Hans
2011 Jan 10
1
environment variable + res_mysql.conf
Hi All.
I have export some db parameter in /etc/bashrc as follows ...
export DB_NAME=xyz
export DB_IP=1x.1x.1x.1x
export DB_PWD=dkjfaoi
Now, I want use these all environment variable into
/etc/asterisk/res_mysql.conf file.
Is there any way to do this..??
--
Regards,
Chandrakant Solanki
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://l...
2008 Dec 16
0
Wine + ODBC Sql Server = fixme:winsock:WSAIoctl unsupported
...nning on a Windows 2003 Server on a remote computer.
I have installed mdac_typ.exe (2.8) with winetriks.
Then I tryied to create a new ODBC driver to access the database, but when the wizard reach the database option windows, this message appears:
?0043:Call ntdll.wcslen(0032b17c L"select db_name() select name from master..sysdatabases where has_dbaccess(name)=1") ret=4e498820
fixme:winsock:WSAIoctl unsupported WS_IOCTL cmd (98000004)?
Also, when I finish configuring the ODBC, I tested the data source already created and I got the same message.
?0016:Call ntdll.wcslen(00329d38 L&quo...
2013 Jun 10
1
[LLVMdev] Cannot submit LLVM test-suite results to the database using LNT tool
...k (most recent call last):
File "/home/star/projects/llvm/lnt/lnt/util/ImportData.py", line 74, in import_and_report
success,run = db.importDataFromDict(data, config=db_config)
File "/home/star/projects/llvm/lnt/lnt/server/db/v4db.py", line 163, in importDataFromDict
db_name)
ValueError: test suite u'nightlytest' not present in this database!
However, if I run the testing with --test-style=simple, then it can succeed in submitting to database.
Could anyone give any suggestion?
PS: Simon, I see you have posted a similar question last year, have you find th...
2008 Jul 16
3
Xapian 1.0.7 released
I've uploaded Xapian 1.0.7, which as usual you can download from:
http://xapian.org/download
This release fixes an assortment of bugs, and improves efficiency in a few
cases. It's intended to be a relatively safe incremental update over 1.0.6.
For a more detailed overview see:
http://trac.xapian.org/wiki/ReleaseOverview/1.0.7
The full lists of user-visible changes are linked to from
2007 Jan 26
1
rake test:x recreates tables in MySQL with server (not database) charset and collation
Any thoughts on how to avoid this problem? Already tried:
1. Setting the charset and collation in migration 001 - no effect:
def self.up
db_name = ActiveRecord::Base::connection.current_database()
execute "ALTER DATABASE #{db_name} CHARACTER SET utf8 COLLATE
utf8_bin"
end
2. Setting the charset and collation on each table individually - no
effect:
{:options=>"engine=InnoDB CHARACTER SET utf8 COLLATE utf8_bin"...
2015 May 10
2
[LLVMdev] http://llvm.org/perf/ instability: some clues
...NT-0.4.1dev-py2.7.egg/lnt/serve
r/ui/app.py", line 76, in get_testsuite
testsuites = self.get_db().testsuite
File
"/opt/venv/perf/lib/python2.7/site-packages/LNT-0.4.1dev-py2.7.egg/lnt/serve
r/ui/app.py", line 55, in get_db
self.db = current_app.old_config.get_database(g.db_name, echo=echo)
File
"/opt/venv/perf/lib/python2.7/site-packages/LNT-0.4.1dev-py2.7.egg/lnt/serve
r/config.py", line 148, in get_database
return lnt.server.db.v4db.V4DB(db_entry.path, self, echo=echo)
File
"/opt/venv/perf/lib/python2.7/site-packages/LNT-0.4.1dev-py2.7.egg/lnt/...
2007 Apr 04
4
joining across databases in a find statement with include (legacy db)
Hi,
I have a legacy database ''old'' and a new database ''new'' which rails
uses. I set up models using old with establish_connection(old), and
this works well, except for include:
class OldModel < ActiveRecord::Base
establish_connection(old)
end
class NewModel < ActiveRecord::Base
has_one :old_model
end
a = OldModel.find :first
NewModel.find(:all,
2013 Dec 22
1
'unknown user' using dovecot LDA
...'?
I'm not sure how I can test my maps with dovecot, but testing with
postfix shows:
# postmap -q user1 at example.com mysql:/etc/postfix/maps/mysql/vmm.cf
example.com/user1/
Which is correct.
And my dovecot-sql-conf.ext contains:
driver = mysql
connect = "host=localhost dbname=db_name user=dbuser password=password"
default_pass_scheme = CRYPT
password_query = \
SELECT username AS user, password \
FROM mailbox WHERE username = '%u'
user_query = \
SELECT CONCAT('/var/vmail/', maildir) AS home \
FROM mailbox WHERE username = '%u'
iterate_que...
2006 Jul 15
8
Connecting to a remote database
...to a remote database (mysql). I know that
my connection settings are correct, since I have a php app that is
connecting to the same database.
Are there any settings besides the following that I need in my database
config file? Any other suggestions?
development:
adapter: mysql
database: db_name
username: username
password: password
host: mysql45.secureserver.net
--
Posted via http://www.ruby-forum.com/.
2009 Feb 12
4
Rails & unixODBC
...o run SQL, but ''isql'' or the IRB aren''t able to access my
unixODBC DSN.
My /etc/odbc.ini:
[Server1]
Driver = FreeTDS
Description = SQLServer Database
Trace = No
Server = ip_of_server
Port = 1433
Database = DB_Name
My /etc/odbcinst.ini:
[FreeTDS]
Description = TDS driver (Sybase/MS SQL)
Driver = /usr/lib/odbc/libtdsodbc.so
Setup = /usr/lib/odbc/libtdsS.so
CPTimeout =
CPReuse =
UsageCount = 2
My /usr/lib/odbc directory:
total 680
-rw-r--r-- 1...
2006 May 03
2
habtm does not work with multiple tables
as i''ve read somewhere. this could be fixed easily. all the rails devs (
or whoever is responsible for the query building and executing part)
have to do is to use the full qualifier in the sql statements (e. g.
DB_Name.Tablename.Row).
to solve that problem in the meanwhile one should define the :join_table
in the habtm association with the full qualifier.
--
Posted via http://www.ruby-forum.com/.
2006 Oct 26
0
access denied for connecting to a remote webhost database
...ed someone''s kind help here. I have been trying to figure
this out for hours.
I am now using SSH building an application on a webhost. After I "rake
db:migrate", it says access denied ....
What I have done for "database.yml" is as follows,
adapter: mysql
database: db_name
username: name
password: psw
host: localhost
Am I supposed to put "localhost" for the host name? I phoned the
webhost''s support, they told me that should be localhost. Really getting
confused and frustrated while trying to build this on a webhost for the
first time.
Cou...