KItis
KItis

Reputation: 5646

Configuring jhipster to use mysql instead of H2 database

I have CMS based in jhipster and H2 database. This CMS is already used in production. Now, due to performance reasons, we need to change the database to mysql. Is there any guide on how to configure already running jhipster application to use a different database.

Upvotes: 1

Views: 1625

Answers (2)

kube ctl
kube ctl

Reputation: 1

You did not indicate your version of JHipster, so assuming 4.5+. Edit your ".yo-rc.json" file to change the value of "devDatabaseType" to "mysql", and then run jhipster upgrade --force to re-generate your app while keeping your custom changes.

Upvotes: 0

Gaël Marziou
Gaël Marziou

Reputation: 16284

You did not indicate your version of JHipster, so assuming 4.5+. Edit your .yo-rc.json file to change value of "devDatabaseType" to "mysql", and then run jhipster upgrade --force to re-generate your app while keeping you custom changes.

Upvotes: 1

Related Questions