Menu

#463 Multisite DB cloning

Release_4.2.2
open
nobody
None
5
2016-12-14
2016-12-09
abrubake
No

With the Multiple Sites feature, I'm seeing an error when trying to clone the default database. I beleive the error only occurs when the database is located on another host. I don't see the "-h" switch in the command to reference the remote database hostname. I've seen this with OpenEMR 4.2.2 and 5, using RHEL 7 w/Mariadb. Here's the exact error text on "Step 3" of the clone process:

Configuring OpenEMR...
Dumping source database...Error 2 running "mysqldump -u 'sample' -p'sample' --opt --skip-extended-insert --quote-names -r /tmp/setup_dump.sql 'sample'":

Discussion

  • abrubake

    abrubake - 2016-12-14

    Yes, thank you. That did work. The Installer.class.php doesn't automatically grab the database server hostname specified by the user via a browser (admin.php). But a quick hard-coding of "-hmyserver.domain.edu" resolved it.

     

Log in to post a comment.

MongoDB Logo MongoDB