Draft: Resolve "Migrate database to different server"
Closes #6738
The change in server/lib/classes/db_mysql.inc.php
is a special one. the use of $app->db->query
had it using the wrong connection ...and due to the missing return I did not see an error when the query eventually failed on missing db privs.