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'":
If you add the -h switch and host variable, does it fix the issue?
https://github.com/openemr/openemr/blob/master/library/classes/Installer.class.php#L613-L616
($this->server and should probably also use the port $this->port)
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.