Bug #11282 Wrong error message when trying to create a table in non existsing database
Submitted: 13 Jun 2005 10:01 Modified: 29 Jun 2005 11:11
Reporter: Magnus Blåudd Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:mysql-4.1.13 OS:Any (any)
Assigned to: Assigned Account CPU Architecture:Any

[13 Jun 2005 10:01] Magnus Blåudd
Description:
Creating a table in a non existsing database does not give the error message, "Databse %s doe not exist" but rather says that the file can not be written to.

How to repeat:
use test;
create table db1.t1(a varchar(30) primary key, b int not null;

Can't create/write to file './db1/t1.frm' (Errcode: 2)

Suggested fix:
The error message "Database %s does not exists" should be returned.
[29 Jun 2005 11:11] Magnus Blåudd
Duplicate of 10407