Search the MySQL manual:

A.2.15 Table 'xxx' doesn't exist Error

If you get the error Table 'xxx' doesn't exist or Can't find file: 'xxx' (errno: 2), this means that no table exists in the current database with the name xxx.

Note that as MySQL uses directories and files to store databases and tables, the database and table names are case-sensitive! (On Windows the databases and tables names are not case-sensitive, but all references to a given table within a query must use the same case!)

You can check which tables you have in the current database with SHOW TABLES. See section 4.5.7 SHOW Syntax.

User Comments

Posted by Muhammad Saleem on Saturday September 7 2002, @5:23am[Delete] [Edit]

query doesn't perform on a result set created
throuh 'create temporary table' command but
displays error message 'table [table name] doesn't
exist'. What is its solution ??

Posted by Willie Leiva on Tuesday November 12 2002, @1:29pm[Delete] [Edit]

Is there any tip to bypass the default case
sensitivity in UNIX? Is it possible to have case
INsensitivity in table names using Linux and/or
UNIX?

Add your own comment.