Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

5

Way to only allow a specific DB to be the default?

v7
By
Asif Choksi
on 2/12/13, 3:37 PM 2,119 views

Hello,

While playing around with OERP 7, I found a few times that being able to log in/log out would show a specific URL in the browser address bar that would only allow a default db to be picked. Otherwise, we have 4-5 test DB's right now.

For some reason, I can't seem to replicate this anymore - wondering if anyone else knows what special url needs to be entered in order for a specific DB to be selected only.

Thanks.

6
Nicholas Linn
On 2/13/13, 5:37 PM

To select a specific database you can add the db option.

For example: localhost:8069/?db=database

Very true Ray, since he asked for a special URL above is what I assumed he was after. +1ed your comment though since it's a good one.

Nicholas Linn
on 2/14/13, 9:22 AM
0
Martin Cichowski
On 7/2/14, 1:32 PM

You can also use --db-filter=YOUR_DATABASE to only show a single database. If you have the public portal activated, you will also be automatically logged in as well.

0
Gustavo
On 2/14/13, 5:09 AM

You can restart the server with the database options, which allow you to work with only one database. Below are listed the database options for the server:

Database related options:
    -d DB_NAME, --database=DB_NAME
                        specify the database name
    -r DB_USER, --db_user=DB_USER
                        specify the database user name
    -w DB_PASSWORD, --db_password=DB_PASSWORD
                        specify the database password
    --pg_path=PG_PATH   specify the pg executable path
    --db_host=DB_HOST   specify the database host
    --db_port=DB_PORT   specify the database port
    --db_maxconn=DB_MAXCONN
                        specify the the maximum number of physical connections to posgresql
    --db-template=DB_TEMPLATE
                        specify a custom database template to create a new database

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 2/12/13, 3:37 PM
Seen: 2119 times
Last updated: 3/16/15, 8:10 AM