Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
provision
Commits
64ffdf72
Commit
64ffdf72
authored
Jun 08, 2009
by
anarcat
Committed by
anarcat
Jun 08, 2009
Browse files
include the output of the mysql command when loading the database dump to ease debugging
parent
5288f576
Changes
1
Hide whitespace changes
Inline
Side-by-side
db_server/provision_mysql.drush.inc
View file @
64ffdf72
...
...
@@ -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"
,
$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
()))
));
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment