- 论坛徽章:
- 0
|
两个mysql服务器 datadir挂载到网络共享出来的存储上,就是说使用同一个数据文件,两个mysql同时运行,其中binlog innodb_log_group_home_dir innodb_data_home_dir pid 指向到本地的其他目录。现在在其中一个mysql 中新建个表 另外一个mysql通过show tables能看到表,但是执行desc 表名或者select * from 表名 的时候,提示没有那个表。部分错误日志如下:
150517 18:43:51 [ERROR] Cannot find or open table gatewang/id from
the internal data dictionary of InnoDB though the .frm file for the
table exists. Maybe you have deleted and recreated InnoDB data
files but have forgotten to delete the corresponding .frm files
of InnoDB tables, or you have moved .frm files to another database?
or, the table contains indexes that this version of the engine
doesn't support.
See dev点mysql点com/doc/refman/5点5/en/innodb-troubleshooting点html
how you can resolve the problem.
怎么解决?另外,这种同时运行两台mysql服务器,并且数据库文件共享存储的方案,是不是压根就不可行?
|
|