On 6/24/09 11:44 AM, Michael Widenius wrote:
>>>>>> "Davi" == Davi Arnaut<Davi.Arnaut@stripped> writes:
> Davi> Hi Paul,
> Davi> On 6/13/09 12:09 PM, Paul DuBois wrote:
> Davi> BTW, this page does not list errors declared within the mysys library,
> Davi> yet the server might return some of then to a client.
> Davi> The list of mysys errors is declared in include/mysys_err.h and the
> Davi> messages in mysys/errors.c (there is also some bits in mysys/errors.c).
>>> Error: 1004 SQLSTATE: HY000 (ER_CANT_CREATE_FILE)
>>> Message: Can't create file '%s' (errno: %d)
>>> Likely cause:
>>> * Server trying to create file in which it has no write permission?
>>> * What else?
> Davi> Currently, this error can only be thrown when copying a .frm file over
> Davi> to a new location fails. More precisely, it can only be thrown during
> Davi> the execution of a CREATE TABLE dst LIKE src statement when the server
> Davi> tries to copy the source table .frm file to the destination table .frm
> Actually it can happen for any 'create file' event that the server
ER_CANT_CREATE_FILE is only raised in mysql_create_like_schema_frm. We
aren't talking about equivalent errors.
davi@skynet:~/bzr/mysql-5.1$ grep -r ER_CANT_CREATE_FILE *
sql/derror.cc: EE(EE_CANTCREATEFILE) = ER(ER_CANT_CREATE_FILE);