Odoo use PostgreSQL as database.
Here you will find the how to setup a postgresql user for odoo in ubuntu.
So follow the steps as below.
Install the required packages
- First of all start the terminal.
- Enter following command to install postgresql package
- >>> sudo apt-get install postgresql
- For graphical interface of postgresql use the following command
- >>> sudo apt-get install pgadmin3
- >>> sudo apt-get install postgresql
- >>> sudo apt-get install pgadmin3
Setup a PostgreSQL user for Odoo
Now for the communication between odoo client and postgresql we have to create user.
- So first of all go to terminal and type following command
- >>> sudo su postgres
- Now create PostgreSQL user XXXX using the following command:
- >>> createuser --createdb --username postgres --no-createrole --pwprompt XXXXX
- where XXXX name will be same system user
- like if your teminal is like below
- hitesh@htr:/$
- then choose “hitesh” as username.
- Now when you enter above command it will ask for password ,provide the password as you like
- >>>Enter password for new role: XXXXXXXXXX
- >>>Enter it again: XXXXXXXXXX
- Then it will ask for super user then provide “y” and press enter
- >>> Shall the new role be a superuser? (y/n) y
- Now User get created and last thing you have to do is provide following command
- >>> createdb stable --encoding=UNICODE
- >>> Exit
- >>> sudo su postgres
- >>> createuser --createdb --username postgres --no-createrole --pwprompt XXXXX
- where XXXX name will be same system user
- like if your teminal is like below
- hitesh@htr:/$
- then choose “hitesh” as username.
- >>>Enter password for new role: XXXXXXXXXX
- >>>Enter it again: XXXXXXXXXX
- >>> Shall the new role be a superuser? (y/n) y
- >>> createdb stable --encoding=UNICODE
- >>> Exit
To access your database using pgAdmin III
Easiest way to done, Thanks a lot, :)
ReplyDeletethanks dear
ReplyDelete