Configuring Hybris e-Commerce Platform with MySql Server 5.6

Embark on a journey to elevate your e-commerce experience by configuring the Hybris platform with the robust MySql Server 5.6, a seamless process that unlocks a world of possibilities for online retailers. With a few straightforward steps, you can ditch the default HSQLDB and harness the power of MySql to drive your digital storefront. From installation to initialization, discover how to effortlessly integrate MySql into your Hybris ecosystem and take your business to the next level.

Akhil Pathania · 13 June 2015 · 1 min read · 18 views
Configuring Hybris e-Commerce Platform with MySql Server 5.6
By default Hybris comes packaged with HSQLDB, follow the below steps to replace that with MySql:
  1. Install MySql Server 5.6 (or any other version) from here.
  2. Create db for use with Hybris i.e. hybris56.
  3. Create a non-root user i.e. dbadmin.
  4. Stop Tomcat Server.
  5. Open C:\work\hybris\bin\platform (your folder path might be different) using a text editor and disable HSQLDB settings, as can be seen in the image below:h2  h3
  6. Enable MySql settings and replace the highlighted fields with your values:h4
  7. Download the connector .jar file from here, unzip it and put it in folder C:\work\hybris\bin\platform\lib\dbdriver (your folder path might be different):h1
  8. Start Tomcat.
  9. If all goes well then go to hMC and initialize the database.
  10. Once the initialization is complete, you are a good to go.
Share X WhatsApp
Leave a Comment

Moderated — may take a moment to appear.

2 Comments
Vishnu Reddy 13 April 2016

I do not think you should change anything in the project.properties file in platorm. You should do that in config/local.properties file.

Akhil Pathania Author 16 April 2016

Hi Vishnu, I agree with you, as thats how it should be approached. However, it was not picking up my changes from the local file!

Erhan Çetin 18 May 2016

Thank you.

Akhil Pathania Author 23 May 2016

You are welcome Erhan :-)

You Might Also Like