Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Aug 10, 2016
1 parent b54b09c commit f302f95
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
* Admin console render processing.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.3.1.9, Jul 28, 2016
* @version 1.3.2.9, Aug 10, 2016
* @since 0.4.1
*/
@RequestProcessor
Expand Down Expand Up @@ -328,9 +328,9 @@ public void exportSQL(final HttpServletRequest request, final HttpServletRespons
String sql;
try {
if (StringUtils.isNotBlank(dbPwd)) {
sql = Execs.exec("mysqldump -u" + dbUser + " -p" + dbPwd + " --database " + db);
sql = Execs.exec("mysqldump -u" + dbUser + " -p" + dbPwd + " --databases " + db);
} else {
sql = Execs.exec("mysqldump -u" + dbUser + " --database " + db);
sql = Execs.exec("mysqldump -u" + dbUser + " --databases " + db);
}
} catch (final Exception e) {
LOGGER.log(Level.ERROR, "Export failed", e);
Expand Down

0 comments on commit f302f95

Please sign in to comment.