Skip to content
Snippets Groups Projects
Commit 64ffdf72 authored by anarcat's avatar anarcat Committed by anarcat
Browse files

include the output of the mysql command when loading the database dump to ease debugging

parent 5288f576
Branches
Tags
No related merge requests found
...@@ -164,7 +164,7 @@ function _provision_mysql_import_dump($dump_file, $db_name, $db_user, $db_passwd ...@@ -164,7 +164,7 @@ function _provision_mysql_import_dump($dump_file, $db_name, $db_user, $db_passwd
drush_log(sprintf("Importing database using command: mysql -u%s -p%s -h%s %s < %s", drush_log(sprintf("Importing database using command: mysql -u%s -p%s -h%s %s < %s",
$db_user, $db_passwd, $db_host, $db_name, $dump_file)); $db_user, $db_passwd, $db_host, $db_name, $dump_file));
if (!provision_shell_exec("mysql -u%s -p%s -h%s %s < %s", $db_user, $db_passwd, $db_host, $db_name, $dump_file )) { if (!provision_shell_exec("mysql -u%s -p%s -h%s %s < %s", $db_user, $db_passwd, $db_host, $db_name, $dump_file )) {
drush_set_error('PROVISION_DB_IMPORT_FAILED', dt("Database import failed")); drush_set_error('PROVISION_DB_IMPORT_FAILED', dt("Database import failed: %output", array('%output' => join("\n", drush_shell_exec_output()))));
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment