我正在环境设置中,运行 OS XMariaDB 10.0.12-MariaDB Homebrew
我搞砸了安装,所以我从我的设置中完全删除了 MySQL 和 MariaDB,然后重新开始。
完成安装 MariaDB 后,我重新导入了我的数据库(innoDB
)通过来自生产服务器的数据库转储。效果很好。
第二天重新启动后,我无法再访问数据库:
Table 'my.table' doesn't exist in engine
这是什么原因造成的以及解决办法是什么?我确实看到了数据库的结构,但是当我尝试访问它时,它给了我这个错误消息。
我确实尝试过mysql-upgrade --force
并删除rm ib_logfile1 ib_logfile0
数据丢失在这里不是问题,问题是我不能在每次重新启动时花费 30 分钟来重新安装每个数据库。
这是一些日志:
140730 9:24:13 [Note] Server socket created on IP: '127.0.0.1'.
140730 9:24:14 [Note] Event Scheduler: Loaded 0 events
140730 9:24:14 [Warning] InnoDB: Cannot open table mysql/gtid_slave_pos from the internal data dictionary of InnoDB though the .frm file for the table exists. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem.
140730 9:24:14 [Warning] Failed to load slave replication state from table mysql.gtid_slave_pos: 1932: Table 'mysql.gtid_slave_pos' doesn't exist in engine
140730 9:24:14 [Note] /usr/local/Cellar/mariadb/10.0.12/bin/mysqld: ready for connections.
Version: '10.0.12-MariaDB' socket: '/tmp/mysql.sock' port: 3306 Homebrew
140730 16:26:28 [Warning] InnoDB: Cannot open table db/site from the internal data dictionary of InnoDB though the .frm file for the table exists. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem.
有些东西删除了 InnoDB 保存字典的 ibdata1 文件。绝对不是 MySQL 干的
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)