Bug #40000 Unclear error message in sql-bench/run-all-tests
Submitted: 13 Oct 2008 13:49 Modified: 3 Jun 2009 10:12
Reporter: c j Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Tests Severity:S4 (Feature request)
Version:5.0.67, 4.1, 5.0, 5.1, 6.0 bzr OS:Other (Ubuntu 7.10)
Assigned to: CPU Architecture:Any
Tags: dbi, run-all-tests, sql-bench, test, unknown database

[13 Oct 2008 13:49] c j
Description:
$ sudo perl run-all-tests --user=root

Got error: 'Unknown database 'test'' when connecting to DBI:mysql:database=test;host=localhost with user: 'root' password: ''

How to repeat:
issue command, from a brand new 7.10 CD install, with LAMP enabled, and apt-get upgrade issued.

Suggested fix:
A more explaining error message would be appeciated, to be able to understand what is happening and how to correct the erro situation.
[3 Jun 2009 10:12] Sveta Smirnova
Thank you for the feature request.

Current message is just answer from MySQL server and looks clear enough, although I agree it can confuse users who are not familiar with Perl DBI