Beginner

Finding Your Odoo Database ID

How to locate your Odoo database ID for Odoo Online and self-hosted installations

2 min read
Last updated: November 11, 2025
6 views

Finding Your Odoo Database ID

Your Odoo database ID is a unique identifier required for API connections. The method to find it differs between Odoo Online and self-hosted installations.

For Odoo Online (SaaS)

Method 1: From the URL

  1. Log in to your Odoo instance
  2. Navigate to any page (e.g., Settings)
  3. Look at the URL in your browser

The URL will look like:

https://mycompany.odoo.com/web#id=1&action=55&...

Your database name is the subdomain (mycompany in this example).

Method 2: From Developer Tools

  1. Enable Developer Mode:

    • Go to Settings
    • Scroll to the bottom
    • Click Activate the developer mode
  2. Open Developer Menu:

    • Click the bug icon in the top right
    • Select About
  3. Find Database ID:

    • The dialog will show your database name and other technical information

For Self-Hosted Odoo

Method 1: From Odoo Configuration

  1. Log in to your Odoo instance as administrator
  2. Go to Settings → Technical → Database Structure → Databases
  3. View the list of databases

Your database name is shown in the list. For multi-database installations, note the exact name you want to connect to.

Method 2: From Server Configuration File

If you have access to the server:

  1. Open the Odoo configuration file (usually /etc/odoo/odoo.conf)
  2. Look for the db_name parameter
  3. Note the database name

Example:

[options]
db_name = production_db
db_host = localhost
db_port = 5432

Method 3: From Database Manager

  1. Navigate to http://your-odoo-url/web/database/manager
  2. Log in with the master password
  3. View the list of available databases

Security Note: The database manager should be disabled in production for security reasons.

Common Issues

Issue: Multiple Databases Listed

If you see multiple databases, choose the one you actively use for production. Contact your system administrator if you're unsure.

Issue: Can't Access Technical Menu

Enable Developer Mode first (Settings → Activate developer mode).

Issue: Permission Denied

You need administrator access to view database information. Contact your Odoo administrator.

Next Steps

Once you have your database ID, proceed to:

Was this article helpful?

Let us know if this guide helped you get started