Changing Hybrid Database in MySQL

I just finished training on hybrids as the main developer. I have done all the trails and will start the project soon, but now I would like to set up the system a bit to learn more about it. I want to change the database in MySQL, but when I change the settings on the hybris platform on these project.properties and local.properties files.

But the problem is that this gives me an exception when I try to start the hybrid server again, something like this:

console output

+5
source share
2 answers

If you want to connect to MySQL, you just need to change the configuration in hybris/config/local.properties .

 db.url=jdbc:mysql://localhost/hybris db.driver=com.mysql.jdbc.Driver db.username=anything but not "root" db.password= mysql.allow.fractional.seconds=true (if you're using MySQL 5.6.4 or later) 

Since Hybris Commerce Suite is version 5.0.2, the MySQL Connector does not come with a hybrid version of Commerce Suite. Download the file and place it in the $ {HYBRIS_BIN_DIR} / platform / lib / dbdriver folder


v6 Update

Now mysql.allow.fractional.seconds=true already present in the project.properties platform.


+6
source

Remember to create a server using "ant all". Without creating a server, configuration is not applied.

0
source

Source: https://habr.com/ru/post/1207887/


All Articles