- 論壇徽章:
- 0
|
兩個(gè)mysql服務(wù)器 datadir掛載到網(wǎng)絡(luò)共享出來(lái)的存儲(chǔ)上,就是說(shuō)使用同一個(gè)數(shù)據(jù)文件,兩個(gè)mysql同時(shí)運(yùn)行,其中binlog innodb_log_group_home_dir innodb_data_home_dir pid 指向到本地的其他目錄,F(xiàn)在在其中一個(gè)mysql 中新建個(gè)表 另外一個(gè)mysql通過(guò)show tables能看到表,但是執(zhí)行desc 表名或者select * from 表名 的時(shí)候,提示沒(méi)有那個(gè)表。部分錯(cuò)誤日志如下:
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點(diǎn)mysql點(diǎn)com/doc/refman/5點(diǎn)5/en/innodb-troubleshooting點(diǎn)html
how you can resolve the problem.
怎么解決?另外,這種同時(shí)運(yùn)行兩臺(tái)mysql服務(wù)器,并且數(shù)據(jù)庫(kù)文件共享存儲(chǔ)的方案,是不是壓根就不可行?
|
|