Difference between revisions of "Importing DB Seed Manually"
CarlosRuiz (talk | contribs) (new way to apply changes on development) |
CarlosRuiz (talk | contribs) Tag: visualeditor |
||
| (12 intermediate revisions by 4 users not shown) | |||
| Line 5: | Line 5: | ||
[[Setting up Eclipse]] | | [[Setting up Eclipse]] | | ||
Importing DB Seed Manually | | Importing DB Seed Manually | | ||
| − | [[ | + | [[Configuring iDempiere within Eclipse]] |
⇒ | ⇒ | ||
</font> | </font> | ||
| Line 13: | Line 13: | ||
Let's check the steps to create an idempiere postgres database: | Let's check the steps to create an idempiere postgres database: | ||
| − | == | + | == Set a password for the postgres user == |
sudo su - postgres | sudo su - postgres | ||
| − | psql -U postgres -c " | + | psql -U postgres -c "ALTER USER postgres PASSWORD 'TheSystemPassword'" |
| − | + | exit | |
| − | '''WARNING:''' Of course this is an insecure password, it is recommended that you set up a proper password for this user account | + | '''WARNING:''' Of course this is an insecure password, it is recommended that you set up a proper password for this user account. You need this password for the instructions below |
| − | == | + | == Run console-setup-alt.sh to initialize the parameters == |
| − | + | cd $HOME/sources/idempiere/org.idempiere.p2/target/products/org.adempiere.server.product/linux/gtk/x86_64 | |
| − | + | bash console-setup-alt.sh | |
| + | # answer all questions from this program, you can choose here database name, etc, take care of the two passwords: | ||
| + | Database Password [adempiere]: | ||
| + | answer this question with your desired password for the adempiere user | ||
| + | Database System User Password []: | ||
| + | TheSystemPassword <- answer this question with the password you set on the previous step | ||
| + | # at the end the program must have generated two files, move them: | ||
| + | mv idempiere.properties .idpass $HOME/sources/idempiere | ||
| − | + | == Import the database == | |
| + | cd $HOME/sources/idempiere | ||
| + | bash RUN_ImportIdempiereDev.sh | ||
| − | + | The last command must import the database and apply all the migration scripts. | |
| − | |||
| − | + | '''NOTE:''' See [[Talk:Importing_DB_Seed_Manually|Discussion]] tab for additional notes. | |
| − | |||
| − | |||
| − | + | ''This How-To is brought to you by [[User:CarlosRuiz|Carlos Ruiz]] from [https://www.bx-service.com/ BX Service GmbH]. Feel free to improve directly or suggest using the Discussion tab. | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
[[Category:User Manual|I]] | [[Category:User Manual|I]] | ||
| Line 66: | Line 51: | ||
[[Category:Development]] | [[Category:Development]] | ||
[[Category:Developer documentation]] | [[Category:Developer documentation]] | ||
| + | [[Category:HowTo]] | ||
| + | [[Category:Updated2022]] | ||
<!-- breadcrumb --> | <!-- breadcrumb --> | ||
| Line 73: | Line 60: | ||
[[Setting up Eclipse]] | | [[Setting up Eclipse]] | | ||
Importing DB Seed Manually | | Importing DB Seed Manually | | ||
| − | [[ | + | [[Configuring iDempiere within Eclipse]] |
⇒ | ⇒ | ||
</font> | </font> | ||
Latest revision as of 14:35, 17 October 2025
⇐ Table of Contents | Setting up Eclipse | Importing DB Seed Manually | Configuring iDempiere within Eclipse ⇒
Please note this procedure is intended for technical people wanting to configure iDempiere to run in Eclipse, there is an easier mechanism on the installers to create the database.
Let's check the steps to create an idempiere postgres database:
Set a password for the postgres user
sudo su - postgres psql -U postgres -c "ALTER USER postgres PASSWORD 'TheSystemPassword'" exit
WARNING: Of course this is an insecure password, it is recommended that you set up a proper password for this user account. You need this password for the instructions below
Run console-setup-alt.sh to initialize the parameters
cd $HOME/sources/idempiere/org.idempiere.p2/target/products/org.adempiere.server.product/linux/gtk/x86_64
bash console-setup-alt.sh
# answer all questions from this program, you can choose here database name, etc, take care of the two passwords:
Database Password [adempiere]:
answer this question with your desired password for the adempiere user
Database System User Password []:
TheSystemPassword <- answer this question with the password you set on the previous step
# at the end the program must have generated two files, move them:
mv idempiere.properties .idpass $HOME/sources/idempiere
Import the database
cd $HOME/sources/idempiere bash RUN_ImportIdempiereDev.sh
The last command must import the database and apply all the migration scripts.
NOTE: See Discussion tab for additional notes.
This How-To is brought to you by Carlos Ruiz from BX Service GmbH. Feel free to improve directly or suggest using the Discussion tab.
⇐ Table of Contents | Setting up Eclipse | Importing DB Seed Manually | Configuring iDempiere within Eclipse ⇒
