Reusing existing DB

Why can’t I use/clone existing openemr database during installation?

@Tech,
you can use the existing database during installation for which you need to select the option “I have already created the database”. For your reference attached the screenshot.

Thanks,
ViSolve

To clarify, that setting is meant for an “empty database” and not for a existing database. This is when folks use hosted environments where they don’t have access to root mysql and need to create the database shell and mysql user before the install.
-brady

hi @Tech,

If you are using an existing database, then could just bypass setup and just configure the sqlconf.php script with your database setting:
openemr/sqlconf.php at master · openemr/openemr · GitHub
(and then set $config near bottom to 1; ignore the DO NOT TOUCH THIS :slight_smile: )

If wish to clone a database for another openemr instance, then check out multisite feature:
https://www.open-emr.org/wiki/index.php/OpenEMR_Multiple_Sites_Module

-brady

Brady’s reply is what I was looking for. Thanks everyone.