How To Create Database From Terminal in Odoo

Abid Patel
14-Oct-2024 Updated : 14-Oct-2024

Learn how to create a database from the terminal in Odoo with simple commands. Manage your Odoo instances efficiently!

How To Create Database From Terminal in Odoo

Creating a database from the terminal in Odoo is a straightforward process that allows administrators to manage their Odoo instances efficiently. To create a new database, use the following command:

Path

./odoo-bin -c /path/to/your/odoo.conf -d new_database_name --db_user=your_db_user --db_password=your_db_password --stop-after-init --init=module_name

Replace new_database_name with the desired name for your database, your_db_user with your database user, and your_db_password with the corresponding password. The --init=module_name option initializes specified modules in the new database.

Alternatively, you can create a database with a command like this:

Path

./odoo-bin -d your_db_name -w odoo --db_host=localhost --db_port=5432 -p 8065

This command connects to the Odoo instance and creates a new database with the specified parameters.

Conclusion

Creating a database from the terminal in Odoo is an essential skill for effective system management. For further details on database management

For more Odoo development tips and tricks, be sure to check our website Free web snippets.

Make a Comment

Your email address will not be published. Required fields are marked *