Bug #6837 Wrong error message
Submitted: 26 Nov 2004 7:02 Modified: 15 Apr 2005 11:19
Reporter: Victoria Reznichenko Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S3 (Non-critical)
Version:5.0 OS:Linux (Linux)
Assigned to: Magnus Blåudd CPU Architecture:Any

[26 Nov 2004 7:02] Victoria Reznichenko
Description:
Wrong error message provided if you try to connect to the non-existent database.

mysql> show databases;
+----------+
| Database |
+----------+
| mtdb2    |
| mysql    |
| t        |
| test     |
+----------+
4 rows in set (0.02 sec)

$ ./bin/mysql my_test
ERROR 2013 (HY000): Lost connection to MySQL server during query

Should be: "Unknown database 'my_test'"

How to repeat:
Connect to the non-existent database.
[23 Mar 2005 0:37] Eric Herman
also happens on OS X.
[25 Mar 2005 16:19] Paul DuBois
It does not happen in 4.1.x, 5.0.0, or 5.0.1.
It happens in 5.0.2, 5.0.3, and 5.0.4.

Tested on Mac OS X and Gentoo Linux.
[15 Apr 2005 10:20] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/internals/24045
[15 Apr 2005 10:51] Magnus Blåudd
See also bug#9455
[15 Apr 2005 11:19] Magnus Blåudd
Fixed by psuh of fix for BUG#9455