【问题标题】:Table exists in show tables but doesn't exist when I try to select from it表存在于显示表中,但当我尝试从中选择时不存在
【发布时间】:2014-08-23 00:40:46
【问题描述】:

我最近从 Mavericks 升级到 Yosemite,我需要重新安装 mysql,我已经使用 brew install mysql 重新安装了它,但在此之前我备份了数据文件夹。 (我通常这样做,因为它比导出和导入要快 :) 并且通常有效)。

问题是在重新安装后,在我复制回数据文件夹后,我拥有了所有的数据库、所有的表,但我遇到了一个特殊的问题。

而这个问题是:

mysql> use eek
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> show tables;
+----------------------+
| Tables_in_eek        |
+----------------------+
| e_commentmeta        |
| e_comments           |
| e_links              |
| e_options            |
| e_postmeta           |
| e_posts              |
| e_term_relationships |
| e_term_taxonomy      |
| e_terms              |
| e_usermeta           |
| e_users              |
+----------------------+
11 rows in set (0.00 sec)

mysql> SELECT * FROM `e_links`;
ERROR 1146 (42S02): Table 'eek.e_links' doesn't exist

我在搜索这个问题时没有得到任何结果,其中大多数是由其他原因引起的问题(例如以 . 的名称命名表)

有什么想法吗?

【问题讨论】:

    标签: mysql sql file-permissions osx-yosemite


    【解决方案1】:

    这是因为当我从数据文件夹中复制数据库时,我只复制了每个单独的文件夹而错过了ib_logfile0ib_logfile1ibdata1

    【讨论】:

      猜你喜欢
      • 2021-04-02
      • 1970-01-01
      • 2013-11-16
      • 2022-09-25
      • 1970-01-01
      • 1970-01-01
      • 2014-06-25
      • 2017-06-10
      • 2014-06-27
      相关资源
      最近更新 更多