亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

Chinaunix

標(biāo)題: 兩臺(tái)mysql datadir共享存儲(chǔ)問(wèn)題 [打印本頁(yè)]

作者: 漠北病樹(shù)    時(shí)間: 2015-05-19 09:52
標(biāo)題: 兩臺(tái)mysql datadir共享存儲(chǔ)問(wèn)題


兩個(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ǔ)的方案,是不是壓根就不可行?

作者: lyhabc    時(shí)間: 2015-05-19 23:53
本帖最后由 lyhabc 于 2015-05-20 00:00 編輯

我的答案是:壓根不可行,mysql根本沒(méi)有這種HA集群功能,即使的機(jī)器A宕機(jī)了,mysql也不會(huì)進(jìn)行failover,機(jī)器B不會(huì)接管
如果這樣都可行,那么很多人都用了,哎。。。
作者: 漠北病樹(shù)    時(shí)間: 2015-05-20 11:17
這個(gè)架構(gòu)我確實(shí)沒(méi)有聽(tīng)說(shuō)誰(shuí)用過(guò),是我同事提出來(lái)的方案,我也不知道可不可以用。在搭建過(guò)程中,遇到一些問(wèn)題。回復(fù) 2# lyhabc


   




歡迎光臨 Chinaunix (http://72891.cn/) Powered by Discuz! X3.2