Bug #98619 mysqlpump doesn't return error if non-existing db is selected
Submitted: 15 Feb 2020 19:17 Modified: 17 Feb 2020 5:55
Reporter: Daniël van Eeden (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: mysqlpump Command-line Client Severity:S3 (Non-critical)
Version:8.0.19, 5.7.29 OS:Any
Assigned to: CPU Architecture:Any

[15 Feb 2020 19:17] Daniël van Eeden
Description:
mysqldump returns the following if a non-existent database is specified:
mysqldump: Got error: 1049: Unknown database 'foobar' when selecting the database
It also returns with exit code 2

mysqlpump doesn't return an error and returns with exit code 0

How to repeat:
mysqlpump foobarbaz

Suggested fix:
If a list of databases is specified and any of these doesn't exist then mysqlpump should return with a non-zero return code.
[17 Feb 2020 5:55] MySQL Verification Team
Hello Daniël,

Thank you for the report and feedback.

regards,
Umesh