I am new to odoo, and I have no idea about how can I connect Odoo 15 to postgresql using just CLI in debian. Any idea or some useful links?
This question has been flagged
Hi,
Are you using different machine when installing each Odoo Instance and Postgres, or do you put it in the same machine?
I will assume that this is the first time you are installing Odoo and postgresql in you machine. In order to connect Odoo with Postgresql, if you are installed both in the same machine, follow the step below :
- From CLI, switch from your superuser user typing su - postgres. This will switch you from root user to postgres user
- Access the psql instance by typing psql
- Then, create a user that later will be used as connection between postgres and odoo. Type these queries below (if you have trouble executing all of these, try to execute line by line :
CREATE USER your-desired-username WITH PASSWORD 'your-desired-password'; ALTER USER your-desired-username WITH SUPERUSER; ALTER USER your-desired-username WITH CREATEROLE; ALTER USER your-desired-username WITH CREATEDB; ALTER ROLE your-desired-username VALID UNTIL 'infinity’;
- After that, exit the database by typing exit.
- Then, go to odoo.conf configuration file by typing nano /etc/odoo/odoo.conf
- Enter these basic configuration below :
admin_passwd = your-admin-pass
data_dir = /var/lib/odoo/.local/share/Odoo/
db_host = False
db_port = False
db_password = False
db_user = your-desired-username
log_level = debug
save the config by pressing ctrl + x and then y - Restart odoo service by typing service odoo restart
- Now, go to your browser and access the IP of the machine that host odoo using default odoo port 8069 (example, 192.168.1.1:8069)
Best regards,
Altela (altelasoftware.com)
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
|
0
Apr 24
|
2724 | ||
|
|
0
Apr 26
|
861 | ||
|
|
1
Dec 23
|
4774 | ||
|
|
2
Aug 23
|
4129 | ||
|
|
2
Jul 23
|
7814 |
up