MySQL Table does not exist error, but it does exist

后端 未结 10 1098
臣服心动
臣服心动 2020-12-03 07:32

Does anyone know under what conditions you can receive an 1146: Table \'.

\' doesn\'t exist error when your table does, in fact, exi
相关标签:
10条回答
  • 2020-12-03 07:54

    Could it be that your one server is a linux box? Mysql is case sensitive on linux but insensitive on windows.

    0 讨论(0)
  • 2020-12-03 07:54

    I had this kind of behaviour once. Later on I discovered that the JDBC driver I used changed my query to lower case, so I couldn't reach my database (which used mixed case letters) with it, although my code was using the correct mixed letters.

    0 讨论(0)
  • 2020-12-03 07:55

    Mac OS X? STOP, don't recopy anything yet...

    I had this problem a couple of times on Mavericks. MySQL is no longer included, but my install is essentially the same as what you'd expect to find on Snow Leopard, I think, rather than MAMP or something.

    After migrating from one computer to another I had this problem. It was the result of the MySQL control panel starting mysqld, rather than my starting it on the command line. (When migrating, this somewhat obsolete control panel forgets that you told it NOT to start on boot.)

    Look at the processes (top or activity monitor), on my system: if owner is root, it was started by launched and doesn't work properly; the correct process will have _mysql as owner.

    Sometimes, I have both process running side by side!

    Oddly, you can do everything, including use mysql via command line. However, even though innodb tables are listed they generate a do not exist error on querying.

    This seems to be an ownership issue, which may apply on other systems as well.

    0 讨论(0)
  • 2020-12-03 08:03

    If you're logged in as someone who doesn't have permission to view that database/table then you'll probably get that result. Are you using the same login on the command line as you are through mysqli?

    0 讨论(0)
提交回复
热议问题