Search code examples
mysqlsap-commerce-cloud

how to reinitialize the database


I have downloaded a demo copy of Hybris for evaluation purposes, and it has been more than 30 days since I downloaded it, and recently I tried to restart it, but it would not, and instead gave me the following message:

"This licence is only for demo or develop usage and is valid for 30 days. After this time you have to reinitialize database to continue your work."

I am/have been running it on a Mac, and the database is MySQL...

What (UNIX) commands do I use to re-initialise the database, so that I can start up the Hybris Server?


Solution

  • Using command line in the Terminal application - goto YOURPATH/hybris/bin/platform and run the ant clean all then ant initialize command then start hybris:

    1. Goto your platform directory

    cd $YOURPATH/hybris/bin/platform

    1. Set ant's environment by runing "dot" "space" "dot-slash" setantenv.sh

    . ./setantenv.sh

    1. Then run ant clean all (to clean environment)

    ant clean all

    1. then run ant initialize (to re-initialize environment)

    ant initialize

    1. Re-start the hybris server process by running hybrisserver.sh

    ./hybrisserver.sh